GMTDateParser

class GMTDateParser

Build GMTDate parser using pattern string.

Pattern string format: | Unit | pattern char | Description | | ——– | ———— | —————————————————- | | Seconds | s | parse seconds 0 to 60 | | Minutes | m | parse minutes 0 to 60 | | Hours | h | parse hours 0 to 23 | | Month | M | parse month from Jan to Dec(see Month for details) | | Year | Y | parse year | | Any char | * | Match any character |

Constructors

<init>

GMTDateParser(pattern: String)

Build GMTDate parser using pattern string.

Functions

parse

fun parse(dateString: String): GMTDate

Parse GMTDate from dateString using pattern.

Companion Object Properties

ANY

const val ANY: Char

DAY_OF_MONTH

const val DAY_OF_MONTH: Char

HOURS

const val HOURS: Char

MINUTES

const val MINUTES: Char

MONTH

const val MONTH: Char

SECONDS

const val SECONDS: Char

YEAR

const val YEAR: Char

ZONE

const val ZONE: Char