The R Project SVN R

Rev

Rev 59039 | Rev 64623 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
51359 ripley 1
% File src/library/base/man/ISOdatetime.Rd
42333 ripley 2
% Part of the R package, http://www.R-project.org
59039 ripley 3
% Copyright 1995-2011 R Core Team
42333 ripley 4
% Distributed under GPL 2 or later
5
 
51359 ripley 6
\name{ISOdatetime}
56186 murdoch 7
\alias{ISOdatetime}
10543 ripley 8
\alias{ISOdate}
51359 ripley 9
\title{Date-time Conversion Functions from Numeric Representations}
10543 ripley 10
\description{
57895 ripley 11
  Convenience wrappers to create date-times from numeric representations.
10543 ripley 12
}
25384 ripley 13
\usage{
10543 ripley 14
ISOdatetime(year, month, day, hour, min, sec, tz = "")
15
ISOdate(year, month, day, hour = 12, min = 0, sec = 0, tz = "GMT")
16
}
17
\arguments{
18
  \item{year, month, day}{numerical values to specify a day.}
37470 ripley 19
  \item{hour, min, sec}{numerical values for a time within a day.
20
    Fractional seconds are allowed.}
51359 ripley 21
  \item{tz}{A \link{timezone} specification to be used for the conversion.
22
    \code{""} is the current time zone and \code{"GMT"} is UTC.}
10543 ripley 23
}
24
\details{
25
  \code{ISOdatetime} and \code{ISOdate} are convenience wrappers for
51359 ripley 26
  \code{strptime} that differ only in their defaults and that
27
  \code{ISOdate} sets UTC as the timezone.  For dates without times it
28
  would normally be better to use the \code{"\link{Date}"} class.
61433 ripley 29
 
57895 ripley 30
  The main arguments will be recycled using the usual recycling rules.
10543 ripley 31
}
32
\value{
51359 ripley 33
  An object of class \code{"\link{POSIXct}"}.
10543 ripley 34
}
35
\seealso{
10854 hornik 36
  \link{DateTimeClasses} for details of the date-time classes;
51359 ripley 37
  \code{\link{strptime}} for conversions from character strings.
10543 ripley 38
}
39
\keyword{utilities}
40
\keyword{chron}