Class

Time

Extends:

Implements the extensions to the Time class that are described in the documentation for the time.rb library.

Constants
CommonYearMonthDays
LeapYearMonthDays
MonthValue
RFC2822_DAY_NAME
RFC2822_MONTH_NAME
ZoneOffset
Aliases
iso8601
rfc822
w3cdtf
Public Methods
httpdate Returns a string which represents the time as rfc1123-date of HTTP-date defined by RFC 2616:
httpdate Parses date as HTTP-date defined by RFC 2616 and converts it to a Time object.
iso8601 Alias for #xmlschema
parse Parses date using Date._parse and converts it to a Time object.
rfc2822 Parses date as date-time defined by RFC 2822 and converts it to a Time object. The format is identical to the date format defined by RFC 822 and updated by RFC 1123.
rfc2822 Returns a string which represents the time as date-time defined by RFC 2822:
rfc822 Alias for #rfc2822
to_yaml
w3cdtf
xmlschema Parses date as dateTime defined by XML Schema and converts it to a Time object. The format is restricted version of the format defined by ISO 8601.
xmlschema Returns a string which represents the time as dateTime defined by XML Schema:
yaml_new
zone_offset
Private Methods
apply_offset
make_time
month_days
to_date def to_time() getlocal end
to_datetime
zone_utc?
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.