GMTDateParser

class GMTDateParser(pattern: String)

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

Link copied to clipboard
constructor(pattern: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun parse(dateString: String): GMTDate

Parse GMTDate from dateString using pattern.