[Omaha.pm] Subclassing Class::Date

Jay Hannah jhannah at omnihotels.com
Thu Aug 4 17:52:23 PDT 2005


I subclassed Class::Date to bend it slightly to my own evil purposes today. Man that's cool software!

http://search.cpan.org/~dlux/Class-Date-1.1.7/Date.pod

Mainly I'm 
- Overriding the constructor to make it a 1-liner instead of a 2-liner
  - and to interpret some specific datetime formats "the Omni way" instead of a sensible way. -grin-
- Added a format() method to reduce a formatted string() call from a 2-liner to a 1-liner. 

Thanks for the awesome software, dLux!

j




More information about the Omaha-pm mailing list