Skip to content

TimeZone abbreviation are ambigious #10

Description

@autarch

Migrated from rt.cpan.org #44854 (status was 'new')

Requestors:

From perl@evancarroll.com on 2009-04-07 20:27:35:

I know it says these are ambiguous in docs, but how come there isn't an
API to tell when they are ambiguous and not?

Using Moose, I can't set up a type coercion that fallsback from a failed
attempt at DateTime::TimeZone unless I know the attempt is failed.

#returns -5 which is the EST for en_US
perl -MDateTime::TimeZone -E'use XXX; say
DateTime::TimeZone->new(name=>"EST")->{spans}[0][DateTime::TimeZone::OFFSET]/60/60'

There are lots of EST's though
http://www.timeanddate.com/library/abbreviations/timezones/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions