Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Date/Time modules - any without default months/days? (http://www.velocityreviews.com/forums/t914238-date-time-modules-any-without-default-months-days.html)

philkime 11-26-2010 11:32 PM

Date/Time modules - any without default months/days?
 
It seems that DateTime and Class::Date both will default month and day
to "1" if you try to create an object with just a year:

$d = new("2003")

gives $d->month = 1

Is there a module that doesn't do this? I need to be able to create
date objects which are potentially just a year and need to be able
also to distinguish between really passing month = 1 and having it
default to 1. It seems very odd these modules don't just return
"undef" when no month is passed, for example.


All times are GMT. The time now is 12:26 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.