Skip to content

Simplify LocalDate(Time) constructor parameter names #84

Open
@fluidsonic

Description

The parameter names are very weird for day-to-day use:

LocalDateTime(year = 2021, monthNumber = 1, dayOfMonth = 1, hour = 12)

I don't care that month is a number. That's what we have a type system for.
OfMonth for day is also redundant as that's obvious from the context.

public constructor(year: Int, monthNumber: Int, dayOfMonth: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0)

Metadata

Assignees

Labels

breaking changeThis could break existing code

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions