Sorry, I'm getting my C and Perl mixed-up. That should of course have been:
[tt]
@lt=localtime(time);
$datestring=
sprintf
(
"%d%02d%02d%02d%02d",
$lt[5]+1900,$lt[4]+1,$lt[3],$lt[2],$lt[1]
);
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.