TimeSystem
是时间函数的一个选项,它指定用于定义时间的时间系统.
更多信息
- 时间系统也称为时间标准、时间尺度或时间参考.
- 时间系统表明决定如何测量时间前进的物理过程:原子振荡、地球自转、其他一些天文现象等.
- 选择合适的时间系统对于精确的时间控制至关重要. 几十年的时间会累积几十秒的误差,而几千年的时间则会累积到几个小时的误差.
- 时间系统的选择与日历的选择和时区的选择无关.
- 时间系统可取的值包括:
-
"TAI" 由原子钟测得的原子时间 "TCB" 太阳系重心坐标时间 "TCG" 地心坐标时间 "TDB","ET" 太阳系重心动力时间,或星历时间 "TT" 在地球海平面上测得的地球时间 "UTC" 协调世界时,包括闰秒 "UT1" 与地球自转角成正比的时间 "UT" 将闰秒揉进前一天的 UTC,或 UTC 计时(1960 年至今)之外的太阳 UT1 时间 - TimeSystem 的默认值是 Automatic,如果给定输入,它将继承输入的时间系统,否则默认为 "UT".
范例
打开所有单元 关闭所有单元基本范例 (3)
DateObject[{2021, 8, 1, 0, 0, 0}, TimeSystem -> "UTC", TimeZone -> 0]TimeSystemConvert[%, "TAI"]JulianDate[DateObject[{2000, 1, 1, 12, 0, 0}, TimeZone -> 0], TimeSystem -> "TT"]% - JulianDate[DateObject[{2000, 1, 1, 12, 0, 0}, TimeZone -> 0], TimeSystem -> "UTC"]86400%DateObject[{2020, 1, 1, 12, 0, 0}, TimeSystem -> "UTC", TimeZone -> 0] - DateObject[{2020, 1, 1, 12, 0, 0}, TimeSystem -> "TAI", TimeZone -> 0]范围 (3)
在 DateObject 表达式中指定不同的时间系统:
DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> Automatic]DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> "UTC"]DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> "UT1"]DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> "TAI"]DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> "TT"]DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> "TDB"]DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> "TCG"]DateObject[{2000, 1, 1, 12, 0, 0}, TimeSystem -> "TCB"]NowTimeZoneConvert[%, 0]CalendarConvert[%, "JulianDate"]TimeSystemConvert[%, "TT"]DateObject[TimeSystem -> "TDB", TimeZone -> 0]TimeSystemConvert[%, "ET"]应用 (1)
属性和关系 (2)
用 TimeSystem 选项指定 DateObject 表达式的时间系统:
DateObject[{1990, 1, 1, 12, 0, 0}, TimeSystem -> "TDB", TimeZone -> 0]用 TimeSystemConvert 将该日期更改为不同的时间系统表示:
TimeSystemConvert[%, "TAI"]{DateObject[TimeSystem -> "UT1", TimeZone -> 0], SolarTime["MeanTime", GeoPosition[{0, 0}]]}巧妙范例 (1)
在 1960 年到 1972 年之间,"UTC" 经常添加小数秒,并且与 "UT1" 更接近:
DateListPlot[{#, DateDifference[DateObject[#, TimeSystem -> "UT1"], DateObject[#, TimeZone -> 0, TimeSystem -> "UTC"], "Second"]}& /@ DateRange[{1960, 1, 2}, {1973, 1, 1}, "Month"], PlotRange -> {-.7, 1}]从 1972 年开始,"UTC" 只根据需要添加整个闰秒,将与 "UT1" 的差别保持在 1 秒内:
DateListPlot[{#, DateDifference[DateObject[#, TimeSystem -> "UT1"], DateObject[#, TimeZone -> 0, TimeSystem -> "UTC"], "Second"]}& /@ DateRange[{1970, 1, 1}, {2020, 1, 1}, "Month"]]"TAI" 与 "UTC" 之间的差别显示了自 "UTC" 开始以来添加的闰秒数:
DateListPlot[{#, DateDifference[DateObject[#, TimeSystem -> "TAI"], DateObject[#, TimeZone -> 0, TimeSystem -> "UTC"], "Second"]}& /@ DateRange[{1960, 1, 2, 0, 0, 0}, {2021, 1, 1}, "Month"]]相关指南
-
▪
- 日期和时间
文本
Wolfram Research (2021),TimeSystem,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TimeSystem.html.
CMS
Wolfram 语言. 2021. "TimeSystem." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/TimeSystem.html.
APA
Wolfram 语言. (2021). TimeSystem. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/TimeSystem.html 年
BibTeX
@misc{reference.wolfram_2026_timesystem, author="Wolfram Research", title="{TimeSystem}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/TimeSystem.html}", note=[Accessed: 03-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_timesystem, organization={Wolfram Research}, title={TimeSystem}, year={2021}, url={https://reference.wolfram.com/language/ref/TimeSystem.html}, note=[Accessed: 03-November-2026]}