[R] Build POSIXlt object from its internal representation list
iagogv
|@gogv @end|ng |rom d|@root@org
Tue Jul 7 13:01:47 CEST 2026
Hi all,
From DateTimeClasses help:
Class "POSIXlt" is internally a list [1] of vectors with components
named sec, min, hour for the time, mday, mon, and year, for the date,
wday, yday for the day of the week and day of the year, isdst, a
Daylight Saving Time flag, and sometimes (both _optional_) zone, a
string for the time zone, and gmtoff, offset in seconds from GMT
If I unlist(x), where x is a POSIXlt object, I get that list, internal
representation of x.
Is there an inverse function returning the POSIXlt object from that
list?
Thank you!
Best,
Iago
Links:
------
[1] http://127.0.0.1:25406/library/base/help/list
[[alternative HTML version deleted]]
More information about the R-help
mailing list