Module | Runt::DPrecision |
In: |
lib/runt/dprecision.rb
|
Module providing automatic precisioning of Date, DateTime, and PDate classes.
Inspired by a pattern by Martin Fowler.
Author: | Matthew Lipper |
YEAR | = | Precision.year | Pseudo Singletons: | |
MONTH | = | Precision.month | ||
WEEK | = | Precision.week | ||
DAY | = | Precision.day | ||
HOUR | = | Precision.hour | ||
MIN | = | Precision.min | ||
SEC | = | Precision.sec | ||
MILLI | = | Precision.millisec | ||
DEFAULT | = | MIN |