"Time" (interpreter type)

Time specification in any standard format or in natural language.

DetailsDetails

  • "Time" can be used in Interpreter and related constructs, including deployed smart form fields.
  • Use of "Time" requires connectivity to the Wolfram Cloud.

Allowed FormsAllowed Forms

  • 10:30hh:mm
    07:15:33hh:mm:ss
    22:4524-hour clock
    8:20 AM12-hour clock
    13h08m23s'h', 'm', 's' separators
    ten o'clocktime specifications in natural language
    quarter past noontime specifications in natural language
    08:35 p.m. PSTtime with time zone
    15:10 GMT+2time with time zone as an offset from GMT

Restriction SpecificationsRestriction 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

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Interpret time specifications:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Interpret time specifications in natural language:

In[1]:=
Click for copyable input
Out[1]=

Restrict the time to be before noon:

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=