Skip to content

Internal function valid-timestamp-p could be smarter about restricting the valid integer range for YEAR arg #3

@mon-key

Description

@mon-key

Internal function valid-timestamp-p could be smarter about restricting the valid integer range for YEAR arg.

local-time::valid-timestamp-p 000001 0 0 0 28 2 most-positive-fixnum)
;=> T

(local-time::valid-timestamp-p 000001 0 0 0 29 2 most-positive-fixnum)
;=> NIL

(local-time:encode-timestamp 000001 0 0 0 29 2 most-positive-fixnum)
;=> error

(local-time:encode-timestamp 000001 0 0 0 28 2 most-positive-fixnum)
;=> error

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