DateTimeTz

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The dayOfWeek part as Int

Link copied to clipboard

The dayOfYear part

Link copied to clipboard
val hours: Int

The hours part

Link copied to clipboard

Returns a new UTC date that will match these components without being the same time

Link copied to clipboard
Link copied to clipboard

The minutes part

Link copied to clipboard

The Month part

Link copied to clipboard
val month0: Int

The Month part as Int where January is represented as 0

Link copied to clipboard
val month1: Int

The Month part as Int where January is represented as 1

Link copied to clipboard
Link copied to clipboard

The seconds part

Link copied to clipboard

Returns a new UTC date that might not match these components, but it is the same time as UTC

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val year: Year

The Year part

Link copied to clipboard

The Year part as Int

Link copied to clipboard

Represents a couple of Year and Month that has leap information and thus allows to get the number of days of that month

Functions

Link copied to clipboard
fun add(dateSpan: MonthSpan, timeSpan: TimeSpan): DateTimeTz

Constructs a new DateTimeTz after adding dateSpan and timeSpan

Link copied to clipboard

Constructs the UTC part of this date by adding an additional offset

Link copied to clipboard

Constructs this local date by adding an additional offset without changing its components

Link copied to clipboard
open operator override fun compareTo(other: DateTimeTz): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun format(format: DateFormat): String
fun format(format: String): String

Converts this date to String using format for representing it

Link copied to clipboard
fun DateTimeTz.format(format: String, locale: KlockLocale): String
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun minus(delta: DateTimeSpan): DateTimeTz
operator fun minus(other: DateTimeTz): Duration
operator fun minus(delta: MonthSpan): DateTimeTz
operator fun minus(delta: TimeSpan): DateTimeTz
Link copied to clipboard
operator fun plus(delta: DateTimeSpan): DateTimeTz
operator fun plus(delta: MonthSpan): DateTimeTz
operator fun plus(delta: TimeSpan): DateTimeTz
Link copied to clipboard

Constructs the UTC part of this date with a new offset

Link copied to clipboard

Constructs this local date with a new offset without changing its components

Link copied to clipboard
open override fun toString(): String

fun toString(format: DateFormat): String
fun toString(format: String): String

Converts this date to String using format for representing it

Link copied to clipboard

Converts this date to String using the DateFormat.DEFAULT_FORMAT for representing it