Package io.ktor.util.date
Types
Link copied to clipboard
Date in GMT timezone
Link copied to clipboard
Link copied to clipboard
class InvalidDateStringException(data: String, at: Int, pattern: String) : IllegalStateException
Content copied to clipboard
Thrown when the date string doesn't the string pattern.
Functions
Link copied to clipboard
Gets current system time in milliseconds since certain moment in the past, only delta between two subsequent calls makes sense.
Gets current system time in milliseconds since certain moment in the past, only delta between two subsequent calls makes sense.
Gets current system time in milliseconds since certain moment in the past, only delta between two subsequent calls makes sense.
Link copied to clipboard
Create new gmt date from the timestamp.
expect fun GMTDate(seconds: Int, minutes: Int, hours: Int, dayOfMonth: Int, month: Month, year: Int): GMTDate
Content copied to clipboard
Create an instance of GMTDate from the specified date/time components
Link copied to clipboard
Truncate to seconds by discarding sub-second part