Skip to content

ZonedDateTime.prototype.startOfDay: Redundant given ZonedDateTime.prototype.withPlainTime can be called with zero arguments #3011

Open
@anba

Description

Calling ZonedDateTime.prototype.withPlainTime without any arguments is equivalent to calling ZonedDateTime.prototype.startOfDay, which makes ZonedDateTime.prototype.startOfDay kind of redundant.

I don't see startOfDay mentioned anywhere in the "size suggestion" threads, so I just want to make sure that this wasn't overlooked and it is intentional to have the separate startOfDay method for ZonedDateTime.

Metadata

Assignees

No one assigned

    Labels

    size-suggestionSuggestions to shrink size of Temporal to address implementer concerns

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions