Convert Time objects to an integer representing the number of seconds since the Unix time epoch: : Convert to Integer « Time « Ruby






Convert Time objects to an integer representing the number of seconds since the Unix time epoch:


puts Time.gm(2007, 05).to_i

 

Related examples in the same category