in reply to Date function
It looks like you can display the current date and time. You just need to subtract 24 hours from now to get to yesterday.
EDIT (after comment below): Make sure your timezone is set correctly too.
Combine that with strftime() and youre done.localtime( time() - (24 * 60 * 60) );
EDIT (after comment below): Make sure your timezone is set correctly too.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Date function
by tobyink (Canon) on Aug 03, 2013 at 14:54 UTC |
In Section
Seekers of Perl Wisdom