"ComputedDateTime" (Interpreter Type)
Date with time derived by computation.
Details
- "ComputedDateTime" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedDateTime" requires connectivity to the Wolfram Cloud.
Allowed Forms
- Any natural-language date with time specification supported by "DateTime", or a computation yielding one.
Restriction Specifications
-
Restricted["ComputedDateTime",{{choices1,…}}] one among choices Restricted["ComputedDateTime",max] a date with time before max Restricted["ComputedDateTime",{min,max}] a date with time between min and max Restricted["ComputedDateTime",{min,max,unit}] a date with time between min and max, with resolution unit
Interpretation
- "ComputedDateTime" yields a DateObject with a TimeObject as its second argument.
Examples
Basic Examples (3)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-rae2nv
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-p83p1r
Out[2]=2

Interpret dates with time derived by computation:
In[1]:=1

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-t32dlu
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-uil2tz
Out[2]=2

Restrict the value to be within a given range:
In[1]:=1

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-qd9f7x
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-e4a882
Out[1]=1

Pure dates or pure times are not accepted:
In[1]:=1

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-uk5xhg
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0cni90p93kk8rpp4hs88ih9kde-l2j0xd
Out[2]=2
