Skip to content

//core/io.islandtime.parser/secondOfMinute

secondOfMinute

common

inline fun DateTimeParserBuilder.secondOfMinute(length: IntRange = 1..2, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})

Parse a second of the minute with a variable number of digits.

The result will be associated with DateTimeField.SECOND_OF_MINUTE.

common

inline fun DateTimeParserBuilder.secondOfMinute(length: Int, crossinline builder: WholeNumberParserBuilder.() -> Unit = {})

Parse a second of the minute with a fixed number of digits.

The result will be associated with DateTimeField.SECOND_OF_MINUTE.