Method: Time#to_a
- Defined in:
- lib/source/ruby.rb
#to_a ⇒ Object
call-seq:
time.to_a -> array
Returns a ten-element array of values for time: [ sec, min, hour, day, month, year, wday, yday, isdst, zone ]<tt/>. The ten elements can be passed directly to <tt>Time::utc or Time::local to create a new Time.
t = Time.now #=> Tue Sep 23 2008 22:10:22 GMT-0400 (EDT)
t.to_a #=> [22, 10, 22, 23, 9, 2008, 2, 267, true, "EDT"]
FIX: Incomplete
6529 6530 6531 |
# File 'lib/source/ruby.rb', line 6529 def to_a [] end |