Skip to content

LocalTime.MAX is internal (get datetime in end of the day) #490

Open
@mtrakal

Description

@mtrakal

Hello,

we have: LocalDate.atStartOfDayIn but we don't have endOfDay.
It would be nice to add that as well.

We would like to use LocalDate.atTime(LocalTime.MAX) but LocalTime.MAX is marked as internal, so it's impossible.

Other way is use create custom extension like: LocalDate.plus(1.days).atStartOfDayIn().minus(1.nano/micro) etc, but it's not straightforward. It would be nice to have it inside kotlinx-datetime natively.

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