Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: problem in Rfc2080 date of imap server

by broomduster (Priest)
on Sep 24, 2008 at 15:14 UTC ( [id://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
    +one);
    
  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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found