Rev 47262 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/date.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{date}\alias{date}\title{System Date and Time}\description{Returns a character string of the current system date and time.}\usage{date()}\value{The string has the form \code{"Fri Aug 20 11:11:00 1999"}, i.e.,length 24, since it relies on POSIX's \code{ctime} ensuring the abovefixed format. Timezone and Daylight Saving Time are taken account of,but \emph{not} indicated in the result.The day and month abbreviations are always in English, irrespectiveof locale.}\references{Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)\emph{The New S Language}.Wadsworth & Brooks/Cole.}\seealso{\code{\link{Sys.Date}} and \code{\link{Sys.time}}; \code{\link{Date}}and\code{\link{DateTimeClasses}} for objects representing date and time.}\examples{(d <- date())nchar(d) == 24## something similar in the current localeformat(Sys.time(), "\%a \%b \%d \%H:\%M:\%S \%Y")}\keyword{utilities}