Re: Date::Manip

[email protected] (Rob Dixon)
Newsgroups perl.beginners
Message-ID <[email protected]>
[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.