Package-level declarations
Properties
Returns this object as kotlin.time.Duration
Convert this duration to LocalTime. If this duration is larger than 24 hours, clock will wrap around.
Returns a new ZonedDateTime with it's day of week set to the first using this's ZonedDateTime.zone
returns the DayOfWeek.getValue of this
Returns true if this is on the same day as ZonedDateTime.now using local time zone
Returns true if this is a valid time string
Computes the length of the current month of LocalDate in days
Computes the length of the current month of LocalDateTime in days
Computes the length of month of this zoned datetime.
Returns a new ZonedDateTime with this's time set to midnight.
Get the amount of seconds since midnight. Convenient for storing LocalTime as an Int value
Functions
Returns a new LocalDateTime set to the midnight.
Returns a new LocalDateTime that is set to the first day of month and 00:00:00.000 of the month of this.
Returns a new LocalDateTime that is set to DayOfWeek.MONDAY and 00:00:00.000 of the week of this.
Returns a new LocalDateTime that is set to the first day of year and 00:00:00.000 of the year of this.
Same as toString but gives you a choice on whether to use 12H scheme. toString uses asString(false).
Represents this numeric value as if it is a number on the clock Examples:
Calculate distance to the other between LocalTime.MIN and LocalTime.MAX
Get either the hour or minute or second value of this time. Values more than 2 will throw an IndexOutOfBoundsException
Returns tru if this calendar is set to current month, computed using local date and timezone of the original calendar.
Returns tru if this calendar is set to current year, computed using local date and timezone of the original calendar
Subtracts a specified number of months from this. Returns a new LocalDateTime
Whether this is on the same day as other, using ZoneId of this and other. It's important that if the ZonedDateTime.zones are different, the values can still be on the same day
Returns true if this is on the same day as other, not considering time zones
example: 12:45:00, 4:30, 7:00 AM, 24 or 12h format, word separator is " ". On a value that is not a valid time, will throw.
Parse s as time serialized using LocalTime.toString and return null if it fails.
Adds a specified number of months to this. Returns a new LocalDateTime
Resets this to the last millisecond of the day.
Resets this to the last day of the month and the last millisecond of the day
Resets this calendar to the start of the day. Modifies the original object.
Resets this to the start of the month and midnight.
Sets field to its maximum value
Resets a given Calendar to the start of the day. Modifies the original object.
Sets field to its minimum value
If this is LocalTime.MIN return null, this otherwise
Creates a new Calendar using this as the date.
Creates a new Calendar using this as the time in milliseconds.
Try to parse this as LocalTime or return null if it fails
Compute total asDuration of all items in the collection
Compute total asDuration of all items in the sequence
Creates a new ZonedDateTime using this Instant and a given zoneId
Returns the same time with all of nanos, seconds and minutes set to 0
Returns the same time with LocalTime.nanosecond set to 0.
Returns the same time with both nanos and seconds set to 0.
Sets this's time to time. Returns a new ZonedDateTime