[R] simpel POSIXlt question

Omar Lakkis uofiowa at gmail.com
Mon Jun 5 22:24:00 CEST 2006


How can I access, either to get or set, the  "sec", "min", "hour",
.... fields of a POSIXlt value as in this example?

> t= as.POSIXlt("2004-11-01")
> t
[1] "2004-11-01"
> unclass(t)
$sec
[1] 0

$min
[1] 0

$hour
[1] 0

$mday
[1] 1

$mon
[1] 10

$year
[1] 104

$wday
[1] 1

$yday
[1] 305

$isdst
[1] -1



More information about the R-help mailing list