"DateTime" (解释器类型)
任何标准格式或自然语言中有时间的日期.
更多信息
- "DateTime" 可用于 Interpreter 和相关的结构,包括部署的智能格式字段.
- 使用 "DateTime" 时需要与 Wolfram Cloud 连接.
限制规范
-
Restricted["DateTime",{{choices1,…}}] 在 choices 中 Restricted["DateTime",max] 在 max 之前有时间的日期 Restricted["DateTime",{min, max}] 在 min 和 max 之间有时间的日期 Restricted["DateTime",{min, max, unit}] 在 min 和 max 之间,有 unit 解析有时间的日期
诠释
- "DateTime" 给出一个在第二变量有一个 TimeObject 的 DateObject.
范例
基本范例 (3)
Interpreter["DateTime"]["Friday, February 28, 2014, 10:30:00 AM GMT"]Interpreter["DateTime"]["now"]Interpreter[Restricted["DateTime", {Today, Today + Quantity[2, "Day"]}]]["tomorrow at 3 pm"]Interpreter[Restricted["DateTime", {-Infinity, Now, "Minute"}]]["21:15 January 12th, 1990"]Interpreter["DateTime"]["1989/12/03"]Interpreter["DateTime"]["8 pm"]相关指南
-
▪
- 设置输入解释器
历史
2014年引入 (10.0)