Class: DateTime

### Home Classes Methods

### In Files

- lib/extlib/datetime.rb

### Parent

Object

### Methods

- #to_datetime
- #to_time

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- Extlib
- Extlib::Assertions
- Extlib::ByteArray
- Extlib::Hook
- Extlib::Hook::ClassMethods
- Extlib::Inflection
- Extlib::LocalObjectSpace
- Extlib::Logger
- Extlib::Pooling
- Extlib::Pooling::InvalidResourceError
- Extlib::Pooling::Pool
- Extlib::SimpleSet
- Gem
- Gem::SourceIndex
- Gem::Specification
- LazyModule
- LazyModule::ClassMethods
- Array
- Class
- DateTime
- Dictionary
- FalseClass
- Hash
- LazyArray
- Mash
- Module
- NilClass
- Numeric
- Object
- ObjectSpace
- Pathname
- REXMLUtilityNode
- String
- Struct
- Symbol
- Time
- ToHashParser
- TrueClass
- VirtualFile

No matching classes.

# DateTime

### Public Instance Methods

to_datetime click to toggle source

Return receiver (for DateTime/Time conversion protocol).

    DateTime.now.to_datetime    #=> #<DateTime: 212093913977/86400,-1/3,2299161>

@return [DateTime] Receiver

@api public

    # File lib/extlib/datetime.rb, line 25
    remove_method :to_datetime if instance_methods(false).any? { |m| m.to_sym == :to_datetime }

to_time click to toggle source

Convert to Time object (for DateTime/Time conversion protocol).

    DateTime.now.to_time    #=> Wed Nov 19 20:04:51 -0800 2008

@return [Time] Time object representing the same moment as receiver

@api public

    # File lib/extlib/datetime.rb, line 12
    remove_method :to_time if instance_methods(false).any? { |m| m.to_sym == :to_time }

[Validate]

Generated with the Darkfish Rdoc Generator 2.