TimeObjectQ

TimeObjectQ[expr]

如果 expr 是一个有有效自变量的 TimeObject 则给出 True,否则给出 False.

更多信息

  • 除非 expr 是有有效自变量的 TimeObject 表达式(即公认的时间规范),否则 TimeObjectQ[expr] 返回 False.

范例

打开所有单元关闭所有单元

基本范例  (1)

TimeObjectQ 测试一个表达式是否为带有有效自变量的 TimeObject

应用  (1)

TimeObjectQ 可以用于函数模式测试:

可能存在的问题  (1)

Now 表示完整的日期,而且不是 TimeObject

Wolfram Research (2015),TimeObjectQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TimeObjectQ.html.

文本

Wolfram Research (2015),TimeObjectQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TimeObjectQ.html.

CMS

Wolfram 语言. 2015. "TimeObjectQ." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/TimeObjectQ.html.

APA

Wolfram 语言. (2015). TimeObjectQ. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/TimeObjectQ.html 年

BibTeX

@misc{reference.wolfram_2024_timeobjectq, author="Wolfram Research", title="{TimeObjectQ}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TimeObjectQ.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_timeobjectq, organization={Wolfram Research}, title={TimeObjectQ}, year={2015}, url={https://reference.wolfram.com/language/ref/TimeObjectQ.html}, note=[Accessed: 22-November-2024 ]}