Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Need a ToDateTimeOffset function #7

@mattjohnsonpint

Description

@mattjohnsonpint

We have no direct function to convert datetime or datetime2 values to datetimeoffset with the correct offset for a particular time zone.

It can be done with two functions, as in:

Tzdb.SwitchZone(Tzdb.LocalToUtc(@local, @tz, 1, 1), @tz)

But this should be wrapped in a single function.

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