Skip to content

excel_numeric_to_date gives NA output for times in daylight savings time gap #420

@Geomorph2

Description

@Geomorph2

The function excel_numeric_to_date seems to work fine with most input, but fails on others when include_time is specified.

Example:

excel_numeric_to_date(43170.08, include_time=TRUE)
[1] "2018-03-11 01:55:12 PST"
excel_numeric_to_date(43170.09, include_time=TRUE)
[1] NA
excel_numeric_to_date(43170.10, include_time=TRUE)
[1] NA
excel_numeric_to_date(43170.11, include_time=TRUE)
[1] NA
excel_numeric_to_date(43170.12, include_time=TRUE)
[1] NA
excel_numeric_to_date(43170.13, include_time=TRUE)
[1] "2018-03-11 03:07:12 PDT"

Most of the values where the function fails seem to end in .09 through 0.11 range.

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