({{, (RefLink[TimeObjectQ, paclet:ref/TimeObjectQ])[expr] 
gives (RefLink[True, paclet:ref/True]) if expr is a (RefLink[TimeObject, paclet:ref/TimeObject]) with valid arguments, and (RefLink[False, paclet:ref/False]) otherwise.}})

OpenersNotesSection(Spacer1)Details

(RefLink[TimeObjectQ, paclet:ref/TimeObjectQ])[expr] returns (RefLink[False, paclet:ref/False]) unless expr is a (RefLink[TimeObject, paclet:ref/TimeObject]) expression with valid arguments (i.e. has a recognized time specification).

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

(RefLink[TimeObjectQ, paclet:ref/TimeObjectQ]) tests whether an expression is a (RefLink[TimeObject, paclet:ref/TimeObject]) with valid arguments:

TimeObjectQ[TimeObject[]]

TimeObjectQ[TimeObject[x]]

TimeObjectQ[x]

OpenersExampleSection2(Spacer1)Applications  (1)

(RefLink[TimeObjectQ, paclet:ref/TimeObjectQ]) can be used in pattern tests for functions:

foo[x_?TimeObjectQ] := TimeZoneConvert[x,0]

foo[TimeObject[]]

foo[TimeObject[x]]

OpenersExampleSection3(Spacer1)Possible Issues  (1)

(RefLink[Now, paclet:ref/Now]) represents a full date and is not a (RefLink[TimeObject, paclet:ref/TimeObject]):

TimeObjectQ[Now]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TimeObject, paclet:ref/TimeObject])  ▪  (RefLink[DateObjectQ, paclet:ref/DateObjectQ])  ▪  (RefLink[DateObject, paclet:ref/DateObject])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Date & Time, paclet:guide/DateAndTime])}, {▪(RefLinkPlain[Testing Expressions, paclet:guide/TestingExpressions])}})}})