GMTDate
data class GMTDate : Comparable<GMTDate>
Date in GMT timezone
Properties
val dayOfMonth: Int : day of month from 1 to 31 |
|
val dayOfWeek: WeekDay an instance of the corresponding day of week |
|
val dayOfYear: Int : day of year from 1 to 366 |
|
val hours: Int : hours from 0 to 23 |
|
val minutes: Int : minutes from 0 to 59 |
|
val month: Month an instance of the corresponding month |
|
val seconds: Int : seconds from 0 to 60(last is for leap second) |
|
val timestamp: Long is a number of epoch milliseconds |
|
val year: Int : year in common era(CE: https://en.wikipedia.org/wiki/Common_Era) |
Functions
Companion Object Properties
val START: GMTDate An instance of GMTDate corresponding to the epoch beginning |
Extension Functions
Subtracts the specified number of milliseconds |
|
Adds the specified number of milliseconds |
|
Convert to Date |
|
Truncate to seconds by discarding sub-second part |