local

Time.local(year) â time
Time.local(year, month) â time
Time.local(year, month, day) â time
Time.local(year, month, day, hour) â time
Time.local(year, month, day, hour, min) â time
Time.local(year, month, day, hour, min, sec_with_frac) â time
Time.local(year, month, day, hour, min, sec, usec_with_frac) â time
Time.local(sec, min, hour, day, month, year, wday, yday, isdst, tz) â time
Class Public methods

Same as ::gm, but interprets the values in the local time zone.

Time.local(2000,"jan",1,20,15,1)   #=> 2000-01-01 20:15:01 -0600
doc_ruby_on_rails
2015-05-17 17:54:25
Comments
Leave a Comment

Please login to continue.