Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 studying the Monastery: (6)
As of 2015-11-29 23:03 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls