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

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
    +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
Node Status?
node history
Node Type: note [id://713446]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-07-07 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls