Sys.time and Sys.Date returns the system's idea of the current date with and without time.
Sys.time和Sys.Date没有时间与返回系统的当前日期的想法。
用法----------Usage----------
Sys.time()
Sys.Date()
Details
详情----------Details----------
Sys.time returns an absolute date-time value which can be converted to various time zones and may return different days.
Sys.time返回一个绝对的日期时间值可以转换为不同的时区,并可能返回不同的天。
Sys.Date returns the current day in the current timezone.
Sys.Date返回当前时区的当前日期。
值----------Value----------
Sys.time returns an object of class "POSIXct" (see DateTimeClasses). On almost all systems it will have sub-second accuracy, possibly microseconds or better. On Windows it increments in clock ticks (usually 1/60 of a second) reported to millisecond accuracy.
Sys.time返回一个类"POSIXct"(见DateTimeClasses)对象。在几乎所有的系统,它会分一秒的精度,可能微秒或更好。在Windows上的时钟节拍(通常是1/60秒的)增量毫秒的精度。
Sys.Date returns an object of class "Date" (see Date).
Sys.Date返回一个类的对象"Date"(见日期)。
注意----------Note----------
Sys.time may return fractional seconds, but they are ignored by the default conversions (e.g. printing) for class "POSIXct". See the examples and format.POSIXct for ways to reveal them.
Sys.time可能返回秒的小数部分,但它们将被忽略,默认转换为类"POSIXct"(例如印刷)。 format.POSIXct的方式来显示他们的例子和。
参见----------See Also----------
date for the system time in a fixed-format character string.
date在一个固定的格式字符串的系统时间。
Sys.timezone.
Sys.timezone。
举例----------Examples----------
Sys.time()
## print with possibly greater accuracy:[#可能更准确地打印:]
op <- options(digits.secs=6)
Sys.time()
options(op)
## locale-specific version of date()[#区域设置特定的日期(版)]
format(Sys.time(), "%a %b %d %X %Y")