Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: POSIX strftime

by davorg (Chancellor)
on Jun 25, 2003 at 12:39 UTC ( [id://268838]=note: print w/replies, xml ) Need Help??


in reply to POSIX strftime

Nothing to do with POSIX. you just need to work out how to get the correct date out of localtime.

use constant DAY => 60 * 60 * 24; use POSIX 'strftime'; print strftime('%Y%m%d', localtime(time - (14 * DAY)));
--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found