Class | RiCal::FastDateTime |
In: |
lib/ri_cal/fast_date_time.rb
|
Parent: | Object |
FastDateTime mimics the Ruby Standard library DateTime class but avoids the use of Rational Instead of using a Rational for the utc offset, FastDateTime uses an integer seconds value
SECONDS_IN_A_DAY | = | 60*60*24 unless defined? SECONDS_IN_A_DAY |
offset | -> | utc_offset_seconds |
date | [RW] | |
hour | [RW] | |
min | [RW] | |
offset | [RW] | |
sec | [RW] | |
secs_since_bod | [RW] |
Return a new FastDateTime based on the receiver but with changes specified by the options
e.g. to obtain the 3nd Tuesday of the receivers month use
time.nth_wday_in_month(2, 2)
e.g. to obtain the 2nd Monday of the receivers year use
time.nth_wday_in_year(2, 1)