Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: problem in Rfc2080 date of imap server

by broomduster (Priest)
on Sep 24, 2008 at 15:14 UTC ( #713446=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use Mail::IMAPClient;
    my $zone = '-0400';  # EDT, season to taste, defaults to '+0000' (GMT0
    my $date = Mail::IMAPClient->Rfc2060_datetime($timestamp_n_daysago, $z
  2. or download this
    use strict;
    use warnings;
    $date = Mail::IMAPClient->Rfc2060_datetime($timestamp_n_daysago, $zone
    print "date_time $num_days days ago: $date\n";
  3. or download this
    -> date && ./test
    Wed Sep 24 16:01:32 EDT 2008
    zone_correction: -14400
    date_time now: 24-Sep-2008 16:01:32 -0400
    date_time 5 days ago: 19-Sep-2008 16:01:32 -0400

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://713446]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2016-02-14 21:33 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (471 votes), past polls