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;
Posted by perlknowledge at 10:29 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: perl

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2017 (1)
    • ►  March (1)
  • ►  2014 (23)
    • ►  November (1)
    • ►  July (1)
    • ►  June (5)
    • ►  April (4)
    • ►  March (6)
    • ►  January (6)
  • ►  2013 (9)
    • ►  December (4)
    • ►  June (4)
    • ►  March (1)
  • ►  2012 (5)
    • ►  November (1)
    • ►  January (4)
  • ▼  2011 (215)
    • ►  November (5)
    • ►  September (1)
    • ►  August (5)
    • ►  July (11)
    • ►  June (6)
    • ►  May (17)
    • ▼  April (16)
      • PERL5LIB
      • A More Complex Flat File Sort
      • Sorting Tab-Delimited Data
      • datestamp in perl
      • spliting limit in perl with example
      • perl different type of perl input separator
      • rotating the array in perl
      • sorted by length and alphabetical order
      • counts the frequency of each word in perl
      • Capturing the output of a shell command
      • $, @, % in Perl variable declaration
      • Match character position in perl
      • How do I process an entire hash in perl
      • Get the size of a hash
      • listbox example in perl tk
      • Printing all the files that have both ".rtf" and "...
    • ►  March (14)
    • ►  February (9)
    • ►  January (131)
  • ►  2010 (42)
    • ►  December (42)
Simple theme. Powered by Blogger.