TimeObjectQ
✖
TimeObjectQ
Details

- TimeObjectQ[expr] returns False unless expr is a TimeObject expression with valid arguments (i.e. has a recognized time specification).
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
TimeObjectQ tests whether an expression is a TimeObject with valid arguments:
In[1]:=1

✖
https://wolfram.com/xid/0d6furhk1f-l3i08k
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0d6furhk1f-z4wwqm
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0d6furhk1f-1ft6v9
Out[3]=3

Applications (1)Sample problems that can be solved with this function
TimeObjectQ can be used in pattern tests for functions:
In[1]:=1

✖
https://wolfram.com/xid/0d6furhk1f-1fusmo
In[2]:=2

✖
https://wolfram.com/xid/0d6furhk1f-pzp6qe
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0d6furhk1f-58lnj2
Out[3]=3

Possible Issues (1)Common pitfalls and unexpected behavior
Now represents a full date and is not a TimeObject:
In[1]:=1

✖
https://wolfram.com/xid/0d6furhk1f-ml9g0
Out[1]=1

Wolfram Research (2015), TimeObjectQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeObjectQ.html.
✖
Wolfram Research (2015), TimeObjectQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeObjectQ.html.
Text
Wolfram Research (2015), TimeObjectQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeObjectQ.html.
✖
Wolfram Research (2015), TimeObjectQ, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeObjectQ.html.
CMS
Wolfram Language. 2015. "TimeObjectQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeObjectQ.html.
✖
Wolfram Language. 2015. "TimeObjectQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeObjectQ.html.
APA
Wolfram Language. (2015). TimeObjectQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeObjectQ.html
✖
Wolfram Language. (2015). TimeObjectQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeObjectQ.html
BibTeX
✖
@misc{reference.wolfram_2025_timeobjectq, author="Wolfram Research", title="{TimeObjectQ}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TimeObjectQ.html}", note=[Accessed: 13-May-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_timeobjectq, organization={Wolfram Research}, title={TimeObjectQ}, year={2015}, url={https://reference.wolfram.com/language/ref/TimeObjectQ.html}, note=[Accessed: 13-May-2025
]}