Skip to content

parsing local-time #56

@knobo

Description

@knobo

How can I parse a date at a timezone and get back a timestamp in local-time
The date "2016-12-01" in 'America/Aruba' would be at "2016-12-01T05:00:00+01" in norway.

I can not just use the :offset in parse-timestring because I don't know if it is daylight savings time or not before after the date is parsed.

To explain with an example:
In postgresql I do this:

select  TIMESTAMP '2016-12-01' at time zone 'America/Aruba';
        timezone        
------------------------
 2016-12-01 05:00:00+01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions