Skip to content

Inconsistency between period_to_seconds and seconds_to_period #294

Description

@larmarange

period_to_seconds considers that a year is equal 365 days while seconds_to_period considers that a year is equal to 365.25 days.

Therefore:

> seconds_to_period(period_to_seconds(years(2)))
[1] "1y 0m 364d 18H 0M 0S"

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions