Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2017-02-22 12:05 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (327 votes). Check out past polls.