in reply to Re^2: problems parsing Time/Date strings
in thread problems parsing Time/Date strings

All CET countries use daylight saving, so the results look to be correct. If the function takes no account of what the actual time is, what use is it?
  • Comment on Re^3: problems parsing Time/Date strings

Replies are listed 'Best First'.
Re^4: problems parsing Time/Date strings
by tobyink (Canon) on Jul 09, 2012 at 14:06 UTC

    "All CET countries use daylight saving"

    Algeria and Tunisia use CET but do not observe daylight saving.

    "If the function takes no account of what the actual time is, what use is it?"

    What function?

    Update: in case anyone doubts me and tries to claim that Algeria uses West Africa Time, not Central European Time, then note that Wikipedia backs me up, as does DateTime...

    $ perl -MDateTime -E'say "$_: ", DateTime->now->set_time_zone($_)->str +ftime("%F %T %Z (%z)") for @ARGV' Europe/Paris Africa/Algiers Africa/ +Tunis Africa/Lagos Europe/Paris: 2012-07-09 16:21:06 CEST (+0200) Africa/Algiers: 2012-07-09 15:21:06 CET (+0100) Africa/Tunis: 2012-07-09 15:21:06 CET (+0100) Africa/Lagos: 2012-07-09 15:21:06 WAT (+0100)
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'