TimestampConvert

Functions

Link copied to clipboard
fun asctimeToDate(timestamp: String): Date?

Converts an asctime-style timestamp to a Date.

Link copied to clipboard

Converts a Date to an asctime-style timestamp.

Link copied to clipboard

Converts a Date to an ISO-8601-style timestamp.

Link copied to clipboard

Converts a Date to an RFC-1036-style timestamp.

Link copied to clipboard

Converts a Date to an RFC-1123-style timestamp.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun httpToDate(timestamp: String): Date?

Converts an HTTP-style timestamp to a Date. The timestamp could be any of RFC 1123, RFC 1036, or C's asctime().

Link copied to clipboard
Link copied to clipboard
fun iso8601ToDate(timestamp: String): Date?

Converts an ISO-8601-style timestamp to a Date.

Link copied to clipboard
fun rfc1036ToDate(timestamp: String): Date?

Converts an RFC-1036-style timestamp to a Date.

Link copied to clipboard
fun rfc1123ToDate(timestamp: String): Date?

Converts an RFC-1123-style timestamp to a Date.

Link copied to clipboard
fun stringDateToDate(StrDate: String): Date?