Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: POSIX strftime

by xdg (Monsignor)
on Jun 25, 2003 at 14:25 UTC ( [id://268867]=note: print w/replies, xml ) Need Help??


in reply to POSIX strftime

Again, as an alternative to POSIX, you can get a lot of nicely parsed offset functionality with Date::Manip.

$ perl -MDate::Manip -e 'print ParseDate("14 days ago")."\n"' 2003061110:22:53 $ perl -MDate::Manip -e 'print UnixDate("14 days ago","%Y%m%d")."\n"' 20030611 $ perl -MDate::Manip -e 'print localtime(UnixDate("14 days ago","%s")) +."\n"' Wed Jun 11 10:23:04 2003

-xdg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-18 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found