core / io.islandtime.parser / era

era

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTimeParserBuilder.era(styles: Set<TextStyle>): Unit

Parse an era from its textual representation in any of the specified styles.

The result will be associated with DateTimeField.ERA.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTimeParserBuilder.era(style: TextStyle): Unit

Parse an era from its textual representation in a specific style.

The result will be associated with DateTimeField.ERA.