Skip to content

Time.Posix has insufficient range #27

Description

@ksvanhorn

Time.Posix is defined as

type Posix = Posix Int

where the integer field is in milliseconds since Jan. 1, 1970. However, the language documentation for Int states that

"Int math is well-defined in the range -2^31 to 2^31 - 1. Outside of that range, the behavior is determined by the compilation target."

This means that Posix time is only guaranteed to be able to represent times between 07 Dec 1969 03:28:37 UTC and 25 Jan 1970 20:31:22 UTC.

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