Ruby/Time/year
Материал из Wiki.crossplatform.ru
Версия от 17:57, 13 сентября 2010; ViGOur (Обсуждение | вклад)
retrieve the year, the month, and the timezone
stop = Time.local( 20, 15, 1, 30, "jan", 2007, 2, 30, false, "MST") stop.year # => 2007 stop.month # => 1 (January) stop.zone # timezone => "MST" or Mountain Standard Time