[ABE.pm] finding calendar units

Ricardo SIGNES rjbs-perl-abe at lists.manxome.org
Sun Jan 9 12:09:17 PST 2005


Ok, I want to do something, and I know how to do it, but I'm hoping
there exists a nice pre-built (non-DateTime!) solution.

Given a date in the format [year, [month, [ day ]]] I want to determine
(begin, end) seconds.  So:

 span(2004);       # (first sec of 2004,         last sec of 2004)
 span(2004,01);    # (first sec of jan 2004,     last sec of jan 2004)
 span(2004,01,02); # (first sec of jan 2nd 2004, last sec of jan 2nd 2004)

Suggestions?

-- 
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/abe-pm/attachments/20050109/cfe942f5/attachment.bin


More information about the ABE-pm mailing list