similar to: Getting a Time Zone abbreviation from the full name?

Displaying 20 results from an estimated 400 matches similar to: "Getting a Time Zone abbreviation from the full name?"

2006 Aug 17
6
Creating Custom Events using prototype
Hi guys! i know prototype can create custom events and can subscribe to it, but is there already a library for this? thanks! -- <script> ////////////////////////////////////////////////////////////////////////////////// REDBAKS=function (){ var b,r,i,a,n="b=''646f63756d656e742e777269746528225"+ "4686572652773206d6f7265207468616e206f6e65207761792"+
2009 Apr 23
0
UserEvent doc : is Uniqueid mandatory in 1.6
Hello, I'm using 1.6.1-rc4. When sending a userevent, (with "UserEvent(MyEvent);" in extensions.ael), I've got : Event: UserEvent Privilege: user,all UserEvent: MyEvent I can't see any Uniqueid field as mentioned http://www.voip-info.org/wiki/view/Asterisk+cmd+UserEvent or http://www.the-asterisk-book.com/unstable/applikationen-userevent.html Is this Uniqueid mandatory ?
2020 Jun 12
2
Send message to AMI from dialplan
Is it possible to simply send a message to appear as an AMI message/event, from the dialplan? For example exten =>123,1,ami(myEvent, param1, param2) and in the AMI a message appears like: Event: myEvent Privilege: call,all Channel: PJSIP/misspiggy-00000001 Uniqueid: 1368479157.3 ChannelState: 3 ChannelStateDesc: Up CallerIDNum: 657-5309 CallerIDName: Miss Piggy
2006 Mar 25
4
dynamic set_table_name for achives
How can I pass something to set_table_name so that I can switch tables on the fly for accessing archive data? If I could access sessions inside a model I would do something like: if @session[:current_period] set_table_name "statistics_" + @session[:archive_year] else set_table_name "statistics_" + Date.now.year end But since I cannot access the session from within a
2010 May 10
3
Using Rails 3 edge to circumvent current_period bug?
I get an error using Rails 3 beta3 on Ruby 1.9.2-preview1 undefined method `current_period'' for nil:NilClass (NoMethodError) This commit should fix it http://github.com/rails/rails/commit/a0cc94b32e5b4e4dce50787eed1208406f99ea82 But I forgot how to ensure I am running on edge with Rails 3. Is it a special bundler command I need to use? Thanks! -- You received this message because
2007 Mar 30
0
[932] branches/wxruby2/wxwidgets_282/doc/textile/event.txtl: 2.8 updates and corrections to Event doc
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Jan 24
1
Timezone abbreviation question
Is it possible to get timezone abbreviations using the TimeZone or TzinfoTimezone classes? Even after converting UTC to localtime it still reports the timezone abbreviation as UTC. Example: >> @tz = TzinfoTimezone.us_zones[2] => #<TzinfoTimezone:0x30868a0 @utc_offset=-28800, @name="Pacific Time (US & Canada)"> >> @tz.now => Wed Jan 24 12:36:56 UTC 2007
2005 Aug 07
1
get timezone abbreviation
This is probably more a Ruby than a rails question, but when I call the method strftime("%Z") on a Time object, it returns the full time zone name "Eastern Daylight Time". Is there a way to get the Abbreviation instead?
2013 Jan 27
2
Unexpected behavior with abbreviation of an argument to paste
R 2.15.1 OS X Colleagues, I encountered the following unexpected behavior today: The following command yielded the expected result: paste(c("TEXT1", "TEXT2"), collapse="|") Result: [1] "TEXT1|TEXT2" However, abbreviating "collapse" by even one character: paste(c("TEXT1", "TEXT2"), collaps="|") yielded the
2013 Jul 01
2
Problem with anova and the new abbreviation restrictions
An unwanted side effect of the new restrictions on abrreviated names. The anova.coxph command, in a slavish copy of anova.lm etc, returns a data frame with column labels of loglik Chisq Df Pr(>|Chi|) If one tries to extract the final column of the table errors result since it is not a standard R variable name. > afit <- anova(lm(conc ~ uptake, CO2)) > afit$P [1]
2008 Oct 28
7
aasm callback order?
Hello! Sometime ago I ran across a webpage where someone had identified the full callback sequence for an object lifecycle including AASM with it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t find it and searches don''t seem to help. Does anyone have a reference to a page that shows the callback sequence with Acts As State Machine (the gem)? I think
2010 Oct 13
10
Rails 2.3.8 - What happens to a datetime field between a form being submitted and the controller receiving the params
I currently have a model that simply contains one datetime field: class CreateElectricityReadings < ActiveRecord::Migration def self.up create_table :clocks do |t| t.datetime :time_keeper t.timestamps end end def self.down drop_table :clocks end end If I enter the date string "13/10/2010" into this field its showing up in the controller as
2009 Nov 10
6
getting the timezone name from an abbreviation
HI, I am creating n onlinecalendar sort of functionality for which the user input for events is taken. To make it user friendly, its left to the user to write the time down rather than selecting it from a datetime field in a form . The user can also specify a timezone. And while doing so its obvious that most inputs will be an abbreviation. My question is - is there a way to convert
2008 Apr 16
3
Linking to "Next Entry >>" from the current Entry Page
Hi all, I''m trying to link to the "Next Entry >>" from the current entry page (in show.html.erb). Any one know how I would do it? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2006 Jun 21
3
Simple range question
I have a model with a datetime field called start_date. I''d like to do a find on the model so that it returns only records with the start_date equal to the current day. Something like this: @foos = Foo.find(:all, :conditions => //?? start_date equal to today''s date ??// ] ) Thanks in advance for any help. -------------- next part
2009 Mar 26
1
Turning off the layout in ActionMailer?
So I''m happy to see that ActionMailer supports layouts now (it may have for a while, but I just now realized it). But I don''t see a way to turn them off selectively or by multipart type. For example, if I have a layout that''s really simple in "layouts/ email.html.erb": <div style="border:1px solid gray"> <%= yield %> </div> I
2007 Jul 08
2
datetime_select, is creating an instance of the Time class
Hello It seems that datetime_select, is creating an instance of the Time class. Why would that be? I found this while building a site where people can create vigils (prayer vigils, peace vigils, etc). When I added a validation method that compared start_date to created_at, it generated the error: ArgumentError (comparison of Time with DateTime failed): I was able to put a breakpoint in the
2006 Feb 28
1
Working with date_select ...
I am a little confused about the best way to work with date_select. I see that in my views it generates a simple input form that allows for the entry of year, month and date information. If I just leave it at that, great! But what if now in the controller, I want to work with the date information. I actually want to take the user input date and compute a new date some number of days in the
2006 Feb 28
5
Problem with paginate, include and foreign keys
Hi all, Solaris 10 Ruby 1.8.4 Rails 1.0.0 Postgres 8.1 postgres driver 0.7.1 I''m having a problem with getting paginate() to properly pick up an FK constraint properly. I don''t seem to have this issue with ActiveRecord, however. Consider: create table start_dates ( id bigserial, start_date date unique, max_slots int default 40, primary key (id) ); create
2006 Apr 15
2
Multi-parameter assignment
Hi, I''m trying to submit data from text boxes on a form to one variable in my controller, in the same way that datetime_select has date(1i), date(2i), etc for day, month, year, etc... I''ve named my variables event[start_date(1i)] event[start_date(2i)] and event[start_date(3i)] but this doesn''t seem to work and event[:start_date] is blank ... any pointers would be