DayRound
更多信息和选项
- DayRound 返回一个 DateObject 表达式.
- 可以使用下列格式指定日期:
-
DateObject[…] 日期对象 {y,m,d} 年,月,日 {y,m} 指定月份的第一天 {y} y 年的 1 月1 日 "string" 以字符串表示日期("Jan. 1, 2000") {y,m,d,h,m,s} 精确的时间 time 绝对时间 - 可用的日期类型有:
-
All 任何日历中的日期(默认) "Weekday" 被视为工作日的日期 "Weekend" 被视为周末的日期 "Holiday" 由 HolidayCalendar 规定的假期 "NonHoliday" 不是假期的日期 "BusinessDay" 非假期工作日 "NonBusinessDay" 假期或周末 "WeekdayHoliday" 发生在工作日的假期 "WeekendHoliday" 发生在周末的假期 "WeekendNonHoliday" 非假期的周末 Monday, Tuesday, … 一周的某一天 "EndOfMonth" 给定月份的最后一天 "BeginningOfMonth" 给定月份的第一天 - 在犹太历中,工作日是 Sunday 到 Thursday.
- DayRound[date] 等价于 DayRound[date,All].
- 已知的舍入值是 "Next"、"Following"、"ModifiedFollowing"、"Preceding"、"Previous" 和 "ModifiedPreceding".
- 如果 date 是 daytype 类型的,则 DayRound 没有效果.
- DayRound 使用下列选项:
-
CalendarType Automatic 指定日期所使用的日历 HolidayCalendar {"UnitedStates","Default"} 假期安排和子指定,用于工作日和假期计算
相关指南
-
▪
- 日期和时间
文本
Wolfram Research (2012),DayRound,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DayRound.html (更新于 2025 年).
CMS
Wolfram 语言. 2012. "DayRound." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2025. https://reference.wolfram.com/language/ref/DayRound.html.
APA
Wolfram 语言. (2012). DayRound. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DayRound.html 年
BibTeX
@misc{reference.wolfram_2025_dayround, author="Wolfram Research", title="{DayRound}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/DayRound.html}", note=[Accessed: 22-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_dayround, organization={Wolfram Research}, title={DayRound}, year={2025}, url={https://reference.wolfram.com/language/ref/DayRound.html}, note=[Accessed: 22-April-2026]}