Rev 54810 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/Dates.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{Dates}\alias{Date}\alias{Dates}\alias{print.Date}\alias{summary.Date}\alias{Math.Date}\alias{Summary.Date}\alias{[.Date}\alias{[<-.Date}\alias{[[.Date}\alias{as.data.frame.Date}\alias{as.list.Date}\alias{c.Date}\alias{mean.Date}\alias{split.Date}\title{Date Class}\description{Description of the class \code{"Date"} representing calendar dates.}\usage{\method{summary}{Date}(object, digits = 12, \dots)}\arguments{\item{object}{An object summarized.}\item{digits}{Number of significant digits for the computations.}\item{\dots}{Further arguments to be passed from or to other methods.}}\details{Dates are represented as the number of days since 1970-01-01, withnegative values for earlier dates. They are always printedfollowing the rules of the current Gregorian calendar, even thoughthat calendar was not in use long ago (it was adopted in 1752 inGreat Britain and its colonies).It is intended that the date should be an integer, but this is notenforced in the internal representation. Fractional days will beignored when printing. It is possible to produce fractional days viathe \code{mean} method or by adding or subtracting (see\code{\link{Ops.Date}}).The print methods respect \code{\link{options}("max.print")}.}\seealso{\code{\link{Sys.Date}} for the current date.\code{\link{Ops.Date}} for operators on \code{"Date"} objects.\code{\link{format.Date}} for conversion to and from character strings.\code{\link{axis.Date}} and\code{\link{hist.Date}} for plotting.\code{\link{weekdays}} for convenience extraction functions.\code{\link{seq.Date}}, \code{\link{cut.Date}},\code{\link{round.Date}} for utility operations.\code{\link{DateTimeClasses}} for date-time classes.}\examples{\dontrun{(today <- Sys.Date())format(today, "\%d \%b \%Y") # with month as a word(tenweeks <- seq(today, length.out=10, by="1 week")) # next ten weeksweekdays(today)months(tenweeks)as.Date(.leap.seconds)}}\keyword{utilities}\keyword{chron}