From: Eric Wong Date: 2013-03-15T18:15:20+09:00 Subject: [ruby-core:53438] Re: [CommonRuby - Feature #8096][Open] introduce Time.current_timestamp Tanaka Akira wrote: > 2013/3/15 vipulnsward (Vipul Amler) : > > > A lot of scenarios and applications require the use of Time.now.to_i which is used as current_timestamp in systems. > > I don't recommend the value to send to another host or somewhere which the > way to interpret the value is not known. > > If your host don't consider leap seconds but another host consider leap second, > The interpretation of the value (year, month, day, hour, minute, second) will > be different. The proposed Time.current_timestamp is the same as Time.now.to_i, but without allocating the intermediate Time object. (Returns seconds since Epoch, same as time() function in C/POSIX))