Function zonedStringToUtcSeconds

  • Parse a wall-clock date/time string in zone to UTC seconds. Accepts the same shapes as istStringToUtcSeconds: YYYY-MM-DD, YYYY-MM-DD HH:MM[:SS], and the T-separated ISO variant. Never consults the host machine's own zone.

    Parameters

    • input: string
    • zone: string = DEFAULT_TIMEZONE

    Returns number