Ruby/Time/Convert to Integer

Материал из Wiki.crossplatform.ru

(Различия между версиями)
Перейти к: навигация, поиск
м (1 версия: Импорт выборки материалов по Ruby)
 

Текущая версия на 17:57, 13 сентября 2010

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

puts Time.gm(2007, 05).to_i