OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret dates with time:

Interpreter["ComputedDateTime"]["sunrise tomorrow"]

Interpreter["ComputedDateTime"]["today @1pm"]

Interpret dates with time derived by computation:

Interpreter["ComputedDateTime"]["2010-12-31 13:30 GMT to EST"]

Interpreter["ComputedDateTime"]["now + 3 years"]

Restrict the value to be within a given range:

Interpreter[Restricted["ComputedDateTime", {Now,Now+Quantity[2,"Hours"]}]]["now + runtime of Avatar"]

Set a resolution of hours:

Interpreter[Restricted["ComputedDateTime", {-Infinity,Now,"Hour"}]]["21:15 January 4th, 1990"]

Pure dates or pure times are not accepted:

Interpreter["ComputedDateTime"]["today"]

Interpreter["ComputedDateTime"]["10:30 CST"]

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

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