OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret times:

Interpreter["StructuredTime"]["10:11:43"]

Interpreter["StructuredTime"]["3:30"]

Restrict the time to be before noon:

Interpreter[Restricted["StructuredTime", (TimeObject["12:00:00", TimeObject[{12,0,0.`}]])]]["21:20"]

Use a different format that (RefLink[DateList, paclet:ref/DateList]) allows:

Interpreter["StructuredTime"]["7:23 PM"]

Interpreter["StructuredTime"]["10.19"]

Restrict the value in a range and with a given resolution:

Interpreter[Restricted["StructuredTime", {(TimeObject["10:00:00", TimeObject[{10,0,0.`}]]),(TimeObject["12:00:00", TimeObject[{12,0,0.`}]]),"Hour"}]][{"11:00","11:25"}]

Specify a custom format:

Interpreter["StructuredTime",DateFormat->{"Hour",".","Minute"}]["9.46"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[TimeObject, paclet:ref/TimeObject])  ▪  (RefLink[DateList, paclet:ref/DateList])}, {Related Interpreter Types:  (RefLink[Time, paclet:ref/interpreter/Time])  ▪  (RefLink[ComputedTime, paclet:ref/interpreter/ComputedTime])  ▪  (RefLink[Date, paclet:ref/interpreter/Date])  ▪  (RefLink[DateTime, paclet:ref/interpreter/DateTime])  ▪  (RefLink[TimeZone, paclet:ref/interpreter/TimeZone])  ▪  (RefLink[UnixTime, paclet:ref/interpreter/UnixTime])  ▪  (RefLink[ExcelDate, paclet:ref/interpreter/ExcelDate])  ▪  (RefLink[DayOfWeek, paclet:ref/interpreter/DayOfWeek])  ▪  (RefLink[StructuredDate, paclet:ref/interpreter/StructuredDate])  ▪  (RefLink[ComputedDate, paclet:ref/interpreter/ComputedDate])  ▪  (RefLink[StructuredDateTime, paclet:ref/interpreter/StructuredDateTime])  ▪  (RefLink[ComputedDateTime, paclet:ref/interpreter/ComputedDateTime])  ▪  (RefLink[ComputedTimeZone, paclet:ref/interpreter/ComputedTimeZone])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})