to_a()
public
Returns Array of parts of Time in sequence of [seconds,
minutes, hours, day, month, year, weekday, yearday, dst?, zone].
now = Time.zone.now
now.to_a
Show source
def to_a
[time.sec, time.min, time.hour, time.day, time.mon, time.year, time.wday, time.yday, dst?, zone]
end