as.POSIXlt {fUtilities}R Documentation

Date-time Conversion Function

Description

Adds date-time conversion function "as.POSIXlt" which is missing in R's base package.

Usage

as.POSIXlt(x, tz = "")

Arguments

tz

time zone specification.

x

the object to be converted.

Note

IMPORTANT NOTE: as.POSIXlt was introduced as generic function in R 2.7.0. We will keep here the Rmetrics implementation to be downward compatible with previous R/Rmetrics Versions. This has to be adapted.

Examples

## as.POSIXlt -
   date = as.POSIXlt("2008-01-01")
   print(date)
   class(date)

[Package fUtilities version 2110.78 Index]