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 > Re: Date::Manip
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 11060 of 11532
Post > Topic >>

Re: Date::Manip

by rob.dixon@[EMAIL PROTECTED] (Rob Dixon) May 13, 2008 at 01:09 AM

reader@[EMAIL PROTECTED]
 wrote:
> 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?

  print $date = ParseDate("epoch 1210628919") . "\n";

Rob
 




 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 Sat Jul 26 6:15:12 CDT 2008.