GMTDate

@Serializable
data class GMTDate(val seconds: Int, val minutes: Int, val hours: Int, val dayOfWeek: WeekDay, val dayOfMonth: Int, val dayOfYear: Int, val month: Month, val year: Int, val timestamp: Long) : Comparable<GMTDate>

Date in GMT timezone

Constructors

Link copied to clipboard
constructor(seconds: Int, minutes: Int, hours: Int, dayOfWeek: WeekDay, dayOfMonth: Int, dayOfYear: Int, month: Month, year: Int, timestamp: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

: day of month from 1 to 31

Link copied to clipboard

an instance of the corresponding day of week

Link copied to clipboard

: day of year from 1 to 366

Link copied to clipboard
val hours: Int

: hours from 0 to 23

Link copied to clipboard

: minutes from 0 to 59

Link copied to clipboard

an instance of the corresponding month

Link copied to clipboard

: seconds from 0 to 60(last is for leap second)

Link copied to clipboard

is a number of epoch milliseconds

Link copied to clipboard
val year: Int

: year in common era(CE: https://en.wikipedia.org/wiki/Common_Era)

Functions

Link copied to clipboard
open operator override fun compareTo(other: GMTDate): Int
Link copied to clipboard
fun copy(): GMTDate
Link copied to clipboard
operator fun GMTDate.minus(milliseconds: Long): GMTDate

Subtracts the specified number of milliseconds

operator fun GMTDate.minus(duration: Duration): GMTDate

Subtracts the specified duration

Link copied to clipboard
operator fun GMTDate.plus(milliseconds: Long): GMTDate

Adds the specified number of milliseconds

operator fun GMTDate.plus(duration: Duration): GMTDate

Adds the specified duration

Link copied to clipboard

Truncate to seconds by discarding sub-second part