class ActiveSupport::TimeWithZone

def to_a

now.to_a # => [27, 29, 2, 18, 8, 2015, 2, 230, false, "UTC"]
now = Time.zone.now # => Tue, 18 Aug 2015 02:29:27.485278555 UTC +00:00

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