Skip to content

Cannot construct a relative date that always points to the _next_ future date & time #406

@Bilge

Description

@Bilge

If we construct a date at midday, Tuesday with new Chronos('Tue 12:0'), but we are currently at 4pm tuesday, then this date will be 4 hours in the past. Let's suppose we always want the constructed date to be in the future. We could "fix" this by specifying new Chronos('next Tue 12:0'), which will point to 7 days ahead. However, if we are currently at 9am on a Tuesday, this will still point 7 days ahead, instead of to midday on the current day, because the next specifier only considers the date portion of the date/time compound and completely ignores the time. Therefore it is impossible to construct a relative date & time that always points to the next future occurrence of that specific date and time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions