Dates(base)
Dates()所属R语言包:base
Date Class
日期类
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Description of the class "Date" representing calendar dates.
类"Date"代表日历日期的说明。
用法----------Usage----------
## S3 method for class 'Date'
summary(object, digits = 12, ...)
参数----------Arguments----------
参数:object
An object summarized.
一个对象的总结。
参数:digits
Number of significant digits for the computations.
计算有效位数的号码。
参数:...
Further arguments to be passed from or to other methods.
进一步的参数被传递或其他方法。
Details
详情----------Details----------
Dates are represented as the number of days since 1970-01-01, with negative values for earlier dates. They are always printed following the rules of the current Gregorian calendar, even though that calendar was not in use long ago (it was adopted in 1752 in Great Britain and its colonies).
日期1970-01-01以来的天数表示,较早的日期为负值。他们总是印按照现行公历的规则,即使在不使用该日历是不久前(这是在英国和其殖民地于1752年通过)。
It is intended that the date should be an integer, but this is not enforced in the internal representation. Fractional days will be ignored when printing. It is possible to produce fractional days via the mean method or by adding or subtracting (see Ops.Date).
它的目的,日期应该是一个整数,但在内部表示,这不是强制执行。打印时,将被忽略小数天。它是通过mean方法,或通过增加或减少可能产生的小数天(见Ops.Date)。
The print methods respect options("max.print").
打印方法方面options("max.print")。
参见----------See Also----------
Sys.Date for the current date.
Sys.Date为当前日期。
Ops.Date for operators on "Date" objects.
Ops.Date"Date"对象的运营商。
format.Date for conversion to and from character strings.
format.Date和字符串转换。
axis.Date and hist.Date for plotting.
axis.Date和hist.Date的图。
weekdays for convenience extraction functions.
weekdays为了方便提取功能。
seq.Date, cut.Date, round.Date for utility operations.
seq.Date,cut.Date,round.Date实用操作。
DateTimeClasses for date-time classes.
DateTimeClasses日期时间类。
举例----------Examples----------
(today <- Sys.Date())
format(today, "%d %b %Y") # with month as a word[作为一个字一个月]
(tenweeks <- seq(today, length.out=10, by="1 week")) # next ten weeks[未来的10周]
weekdays(today)
months(tenweeks)
as.Date(.leap.seconds)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|