Perl/Shell Knowledge Sharing
Perl Interview Questions and Answers
Wednesday, April 13, 2011
datestamp in perl
$datestamp = sprintf "%04d-%02d-%02d", ((localtime )[5]+1900), (localtime )[4]+1, (localtime)[3];
print $datestamp;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment