Package-level declarations

Types

Link copied to clipboard

An enum class for date formats.

Link copied to clipboard

An enum class for time millis.

Functions

Link copied to clipboard
fun String.defaultToDate(format: String, locale: Locale = Locale.US): Date?

Convert a date string to a date which based on the time zone set in the System.

Link copied to clipboard
fun String.toDate(format: String, locale: Locale, timezone: TimeZone): Date?

Convert a date string to a date.

Link copied to clipboard
fun Long.toDateString(format: String, locale: Locale, timezone: TimeZone): String

Convert UNIX time to a date string.

Link copied to clipboard
fun Long.toDefaultDateString(format: String, locale: Locale = Locale.US): String

Convert UNIX time to a date string which based on the time zone set in the System.

Link copied to clipboard
fun Long.toUtcDateString(format: String = FRDateFormat.ISO_8601.format): String

Convert UNIX time to a date string which based on the UTC.

Link copied to clipboard
fun String.utcToDate(format: String = FRDateFormat.ISO_8601.format): Date?

Convert a date string to a date which based on the UTC.