"Time" (Interpreter Type)
Time specification in any standard format or in natural language.
Details
- "Time" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Time" requires connectivity to the Wolfram Cloud.
Allowed Forms
Restriction Specifications
-
Restricted["Time",{{choices1,…}}] one among choices Restricted["Time",max] a time before max Restricted["Time",{min,max}] a time between min and max Restricted["Time",{min,max,unit}] a time between min and max, with resolution unit
Interpretation
- "Time" yields a TimeObject.
Examples
Basic Examples (3)
Interpret time specifications:
Interpreter["Time"]["17:30"]Interpreter["Time"]["10:15 GMT"]Interpret time specifications in natural language:
Interpreter["Time"]["4:00 in the morning"]Restrict the time to be before noon:
Interpreter[Restricted["Time", TimeObject[{12, 0, 0.}]]]["21:20"]Restrict the value in a range and with a given resolution:
Interpreter[Restricted["Time", {TimeObject[{10, 0, 0.}], TimeObject[{12, 0, 0.}], "Hour"}]][{"half past 10", "11am"}]Related Guides
History
Introduced in 2014 (10.0)