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
# File activesupport/lib/active_support/time_with_zone.rb, line 445
def to_a
[time.sec, time.min, time.hour, time.day, time.mon, time.year, time.wday, time.yday, dst?, zone]
end