| Line 2... |
Line 2... |
| 2 |
\alias{as.POSIXct}
|
2 |
\alias{as.POSIXct}
|
| 3 |
\alias{as.POSIXct.default}
|
3 |
\alias{as.POSIXct.default}
|
| 4 |
\alias{as.POSIXct.POSIXlt}
|
4 |
\alias{as.POSIXct.POSIXlt}
|
| 5 |
\alias{as.POSIXct.date}
|
5 |
\alias{as.POSIXct.date}
|
| 6 |
\alias{as.POSIXct.dates}
|
6 |
\alias{as.POSIXct.dates}
|
| - |
|
7 |
\alias{as.POSIXct.Date}
|
| 7 |
\alias{as.POSIXlt}
|
8 |
\alias{as.POSIXlt}
|
| 8 |
|
9 |
|
| 9 |
\title{Date-time Conversion Functions}
|
10 |
\title{Date-time Conversion Functions}
|
| 10 |
\description{
|
11 |
\description{
|
| 11 |
Functions to manipulate objects of classes \code{"POSIXlt"} and
|
12 |
Functions to manipulate objects of classes \code{"POSIXlt"} and
|
| Line 26... |
Line 27... |
| 26 |
}
|
27 |
}
|
| 27 |
\details{
|
28 |
\details{
|
| 28 |
The \code{as.POSIX*} functions convert an object to one of the two
|
29 |
The \code{as.POSIX*} functions convert an object to one of the two
|
| 29 |
classes used to represent date/times (calendar dates plus time to the
|
30 |
classes used to represent date/times (calendar dates plus time to the
|
| 30 |
nearest second). They can take convert a wide variety of objects,
|
31 |
nearest second). They can take convert a wide variety of objects,
|
| 31 |
including objects of the other class and of classes \code{"date"}
|
32 |
including objects of the other class and of classes \code{"Date"},
|
| 32 |
(from package \pkg{\link[date:as.date]{date}} or
|
33 |
\code{"date"} (from package \pkg{\link[date:as.date]{date}} or
|
| 33 |
\pkg{\link[survival:as.date]{survival}}), \code{"chron"} and
|
34 |
\pkg{\link[survival:as.date]{survival}}), \code{"chron"} and
|
| 34 |
\code{"dates"} (from package \pkg{\link[chron]{chron}}) to these
|
35 |
\code{"dates"} (from package \pkg{\link[chron]{chron}}) to these
|
| - |
|
36 |
classes. Dates are treated as being at midnight UTC.
|
| - |
|
37 |
|
| 35 |
classes. They can also convert character strings of the formats
|
38 |
They can also convert character strings of the formats
|
| 36 |
\code{"2001-02-03"} and \code{"2001/02/03"} optionally followed by
|
39 |
\code{"2001-02-03"} and \code{"2001/02/03"} optionally followed by
|
| 37 |
white space and a time in the format \code{"14:52"} or
|
40 |
white space and a time in the format \code{"14:52"} or
|
| 38 |
\code{"14:52:03"}. (Formats such as \code{"01/02/03"} are ambiguous
|
41 |
\code{"14:52:03"}. (Formats such as \code{"01/02/03"} are ambiguous
|
| 39 |
but can be converted via a format specification by
|
42 |
but can be converted via a format specification by
|
| 40 |
\code{\link{strptime}}.)
|
43 |
\code{\link{strptime}}.)
|