Class Runt::PDate
In: lib/runt/pdate.rb
Parent: DateTime

PDate

Date and DateTime with explicit precision.

Based the pattern by Martin Fowler.

Author:Matthew Lipper

Methods

+   -   <=>   civil   day   default   hour   include?   marshal_dump   marshal_load   millisecond   min   month   new_self_plus   sec   to_date   week   year  

Included Modules

DPrecision

External Aliases

civil -> old_civil
civil -> new

Attributes

date_precision  [RW] 

Public Class methods

Public Instance methods

Custom dump which preserves DatePrecision

Author:Jodi Showers

Custom load which preserves DatePrecision

Author:Jodi Showers

[Validate]