Rebol 编程/now
外观
< Rebol 编程
NOW /year /month /day /time /zone /date /weekday /yearday /precise
返回当前本地日期和时间。
NOW 是一个本机值。
- /year -- 仅返回年份。
- /month -- 仅返回月份。
- /day -- 仅返回月份中的日期。
- /time -- 仅返回时间。
- /zone -- 仅返回时区相对于 GMT 的偏移量。
- /date -- 仅返回日期。
- /weekday -- 返回一周中的日期作为整数(星期一是第 1 天)。
- /yearday -- 返回一年中的日期(儒略日)。
- /precise -- 使用纳秒精度
now: native[
"Returns the current local date and time."
/year "Returns the year only."
/month "Returns the month only."
/day "Returns the day of the month only."
/time "Returns the time only."
/zone "Returns the time zone offset from GMT only."
/date "Returns date only."
/weekday {Returns day of the week as integer (Monday is day 1).}
/yearday "Returns day of the year (Julian)"
/precise "Use nanosecond precision"
]