Build POSIXlt object from its internal representation list

iagogv via R-help <[email protected]> Tue, 07 Jul 2026 13:01:47 +0200
Newsgroups gmane.comp.lang.r.general
Message-ID <[email protected]>
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]]