Time

zio.schema.validation.Time
trait Time

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Validation.type

Members list

Value members

Concrete methods

def time(format: String): Validation[String]

Format is almost the same as the one used by the java.time.format.DateTimeFormatter class.

Format is almost the same as the one used by the java.time.format.DateTimeFormatter class.

a AM/PM always 2 letters h 1-12 hour 1 or 2 digits hh 01-12 hour always 2 digits H 0-23 hour 1 or 2 digits HH 00-23 hour always 2 digits m 0-59 minute 1 or 2 digits mm 00-59 minute always 2 digits s 0-59 second 1 or 2 digits ss 00-59 second always 2 digits

S 0-9 fraction of seconds 1 digits .. SSSSSSSSS 000000000-999999999 maximum number of digits is 9

All other letters are reserved.

Examples: HH:mm 01:10 HH:mm:ss 11:10:30 HH:mm:ss.SSSSSSSSS 21:10:30.123456789 HH:mm a 01:10 AM h:mm:ss 1:10:30

Attributes