Skip to content

dateTime.val (or _dateVal) fails for dates before 1900 #195

Description

@JoeStrout

In the C++ version of MiniScript, the dateTime.val function (from the standard library, which simply calls the _dateVal intrinsic function) returns -946710001 for any date before the year 1900.

Example:

> dateTime.val("1900-01-01") 
-3155673600
> dateTime.val("1899-01-01")
-946710001
> dateTime.val("1898-01-01") 
-946710001

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions