mktime

Time.mktime(year) â time
Time.mktime(year, month) â time
Time.mktime(year, month, day) â time
Time.mktime(year, month, day, hour) â time
Time.mktime(year, month, day, hour, min) â time
Time.mktime(year, month, day, hour, min, sec_with_frac) â time
Time.mktime(year, month, day, hour, min, sec, usec_with_frac) â time
Time.mktime(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:56:16
Comments
Leave a Comment

Please login to continue.