Class: DateTime

### Home Classes Methods

### In Files

- lib/openid/util.rb

### Parent

Object

### Methods

- #to_time

### Class/Module Index

Quicksearch

- OpenID
- OpenID::Association
- OpenID::AssociationManager
- OpenID::AuthenticationError
- OpenID::BaseAssociationManager
- OpenID::Consumer
- OpenID::ConsumerAssociation
- OpenID::DiffieHelmanAssociator
- OpenID::DumbAssociationManager
- OpenID::NoArgumentsError
- OpenID::NoOpenIDArgs
- OpenID::ProtocolError
- OpenID::Request
- OpenID::Response
- OpenID::ServerAssociation
- OpenID::SimpleHTTPClient
- OpenID::UserCancelled
- OpenID::UserSetupNeeded
- OpenID::ValueMismatchError
- String
- String::OpenID
- Bignum
- Crypto_math
- DateTime
- Fixnum

No matching classes.

# DateTime

### Public Instance Methods

to_time() click to toggle source

Converts to a UTC Time.

    # File lib/openid/util.rb, line 56
    def to_time()
            if offset == 0
                    return Time.gm(year, month, day, hour, min, sec)
            else
                    utc = new_offset
                    return  Time.gm(utc.year, utc.month, utc.day, utc.hour, utc.min, utc.sec)
            end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.