Skip to content

GB335 27.07.1.1 Clarify whether clocks can represent time before their epoch LWG 3318 #331

@wg21bot

Description

@wg21bot

Wording for clocks should be unified unless they are intended to behave differently
In 27.7.1.1 note 1 for system_clock it is stated
"Objects of type system_clock represent wall clock time from the system-wide realtime clock. Objects of
type sys_time<Duration> measure time since (and before) 1970-01-01 00:00:00 UTC"
The express statement of "since (and before)" is important given the time epoch of these clocks. If all the clocks support time prior to their zero-time then this should be stated explicitly. If not then likewise that should be noted. No change is proposed yet, clarification required over the intended behaviour when using values prior to a given clock's epoch is needed before the appropriate change can be suggested.

Proposed change:
Unify the wording

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions