Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: where does the time go?

by johannz (Hermit)
on Apr 24, 2002 at 18:43 UTC ( [id://161720]=note: print w/replies, xml ) Need Help??


in reply to where does the time go?

No one really seriously talked about Date::Manip, one of my favorite modules. It sometimes gets a bad rap since it isn't the fastest module, but speed won't be critical for what you are doing.

The following should be adaptable to what you need.

#!perl use strict; use warnings; use Date::Manip; local $\ = "\n"; Date_Init('TZ=US/Mountain'); my $month = UnixDate('last month', '%B'); my @dates = ParseRecur("every day in $month"); print UnixDate($_, '%D') for @dates;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://161720]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-26 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found