ConformDates[dates]
返回一个日期列表,其中所有日期都具有符合要求的属性,包括日历、时区和粒度.
ConformDates[dates,rdate]
以与参考日期 rdate 一致的形式返回所有日期.
ConformDates
ConformDates[dates]
返回一个日期列表,其中所有日期都具有符合要求的属性,包括日历、时区和粒度.
ConformDates[dates,rdate]
以与参考日期 rdate 一致的形式返回所有日期.
更多信息和选项
- ConformDates 可用于标准化日期集合,使得它们使用通用的日历、时区和粒度.
- ConformDates 与 DateObject 表达式列表一起使用.
- ConformDates 具有与 DateObject 相同的选项: [所有选项的列表]
-
CalendarType Automatic 正在使用的日历系统 DateGranularity Automatic 正在使用的日历粒度 DateFormat Automatic 用于显示日期的格式 TimeZone Automatic 正在使用的时区 TimeSystem Automatic 正在使用的时间系统 - 选项规范优先于第二个参数中的规范. 如果指定,值为 Automatic 的选项将继承 rdate 或 dtype 中使用的值.
- 如果没有给出参考日期,则将使用最常见的粒度、日历、时区、时间系统等.
-
CalendarType Automatic 正在使用的日历系统 DateFormat Automatic 用于显示日期的格式 DateGranularity Automatic 正在使用的日历粒度 TimeSystem Automatic 正在使用的时间系统 TimeZone Automatic 正在使用的时区
所有选项的列表
范例
打开所有单元 关闭所有单元范围 (2)
ConformDates 对 DateObject 和 TimeObject 表达式进行操作,但不对 DateList、DateString 或AbsoluteTime 规范起作用:
当指定参考日期时,DateGranularity、CalendarType 等选项将从该给定日期继承:
选项 (5)
CalendarType (1)
默认情况下,ConformDates 返回公历日期:
CalendarType 选项可用于指定所需的输出日历:
DateGranularity (1)
默认情况下,ConformDates 会返回输入日期中给出的最细粒度的日期:
DateGranularity 选项可用于指定所需的输出粒度:
DateFormat (1)
默认情况下,ConformDates 以默认日期格式返回日期:
DateFormat 选项可用于指定所需的输出格式:
TimeZone (1)
默认情况下,ConformDates 返回您所在时区 $TimeZone 的日期:
TimeZone 选项可用于指定所需的输出时区:
TimeSystem (1)
默认情况下,ConformDates 返回默认时间系统("UT")中的日期:
TimeSystem 选项可用于指定所需的输出时间系统:
相关指南
-
▪
- 日期和时间
文本
Wolfram Research (2024),ConformDates,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ConformDates.html.
CMS
Wolfram 语言. 2024. "ConformDates." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ConformDates.html.
APA
Wolfram 语言. (2024). ConformDates. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ConformDates.html 年
BibTeX
@misc{reference.wolfram_2025_conformdates, author="Wolfram Research", title="{ConformDates}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/ConformDates.html}", note=[Accessed: 11-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_conformdates, organization={Wolfram Research}, title={ConformDates}, year={2024}, url={https://reference.wolfram.com/language/ref/ConformDates.html}, note=[Accessed: 11-April-2026]}