Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Date::Manip
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 11060 of 11518
Post > Topic >>

Date::Manip

by reader@[EMAIL PROTECTED] May 12, 2008 at 07:00 PM

Can soneone show me how to convert unix time to something else using
Date:: Manip?

AFter looking at the Docs in perldoc Date::Manip I thought maybe (from
the examples)  something like script below would work.  The first two
(now commented) worked as expected but the one with unix date produces
a blank line only:

  #!/usr/local/bin/perl
  
  use strict;
  use warnings;
  use Date::Manip;
  
  my $date;
  # print $date = ParseDate("05/12/08") . "\n";
  # print $date = ParseDate("today") . "\n";
  print $date = ParseDate("1210628919") . "\n";

What is the right syntax?
 




 3 Posts in Topic:
Date::Manip
reader@[EMAIL PROTECTED]   2008-05-12 19:00:31 
Re: Date::Manip
rob.dixon@[EMAIL PROTECTE  2008-05-13 01:09:53 
Re: Date::Manip
reader@[EMAIL PROTECTED]   2008-05-12 19:21:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 13:11:39 CDT 2008.