Re: Date function
- From: "Brian McCauley" <nobull67@xxxxxxxxx>
- Date: 28 Nov 2006 14:16:13 -0800
Sharif Islam wrote:
K.J. 44 wrote:
Hi,
is there a date function in Perl or do I have to try to find a module?
What i need is to be able to come up with the current date, then
subtract one day, and add that to the file name in the form of:
YYYY-MM-DD-RestOfFileName.txt
The script I have written parses these files and I want to run it every
night after midnight on the previous days file which has the naming
convention above.
I am running ActiveState Perl in a Windows environment.
You can use the Date::Format module.
Or just the POSIX module's strftime().
.
- References:
- Date function
- From: K.J. 44
- Re: Date function
- From: Sharif Islam
- Date function
- Prev by Date: Re: Date function
- Next by Date: Re: Date function
- Previous by thread: Re: Date function
- Next by thread: Re: Date function
- Index(es):
Relevant Pages
|
|