Skip to content

"class Instant's epoch is implementation dependent": stated in confusing and mysterious way #4608

@arkiuat

Description

@arkiuat

Problem

In https://docs.raku.org/type/Instant the statement "It is not tied to or aware of any epoch." is an unnecessarily mysterious way of saying that the epoch of Instant is implementation-dependent.

Clearly, every implementation is going to tie Instant to some epoch or another (which the above seems to contradict): it's just that we can't portably rely on what that epoch is going to be.

It would be much less confusing simply to state that the epoch of Instant is not defined by the standard and is implementation dependent. This would have made it clear to me (the above did not!) that the 1969-12-31T12:59:50Z epoch of Rakudo's implementation of Instant was just an implementation choice.

Suggestions

I would replace the sentence

"It is not tied to or aware of any epoch."

with

"The particular epoch used by Instant is an implementation choice and subject to change at any time."

or if that's too long

"Its epoch is implementation-dependent."

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation issue (primary issue type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions