"StructuredTime" (interpreter type)

Time specification in a standard format.

DetailsDetails

Allowed FormsAllowed Forms

  • 10:30hh:mm
    07:15:33hh:mm:ss
    22:4524-hour clock
    9:15 PMAM/PM
  • All the separators that DateList accepts are allowed.

Restriction SpecificationsRestriction Specifications

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Interpret times:

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

Restrict the time to be before noon:

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

Use a different format that DateList allows:

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

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

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