I?think?'[.POSIXlt'?and?'[<-.POSIXlt'?don't?need?to?normalize?out-of-range?values.?I?think?they?just?make?same?length?for?all?components,?to?ensure?correct?extraction?or?replacement?for?arbitrary?index.
I?have?a?thought?of?adding?an?optional?argument?for?'as.POSIXlt'?applied?to?"POSIXlt"?object.?Possible?name:
normalize
adjust
fixup
To?allow?recycling?only?without?changing?content,?instead?of?TRUE?or?FALSE,?maybe?choice,?like
fixup?=?c("none",?"balance",?"normalize")
,?where?"normalize"?implies?"balance",?or
adjust?=?c("none",?"length",?"content",?"value")
,?where?"content"?and?"value"?are?synonymous.
By?the?way,?Inf?in?'sec'?component?is?out-of-range!
For?'gmtoff',?NA?or?0?should?be?put?for?unknown.?A?known?'gmtoff'?may?be?[ositive,?negative,?or?zero.?The?documentation?says
?gmtoff? (Optional.) The offset in seconds from GMT: positive
values are East of the meridian. Usually ?NA? if unknown,
but ?0? could mean unknown.
dlt?<-?.POSIXlt(list(sec?=?c(-999,?10000?+?c(1:10,-Inf,?NA))?+?pi,
????????????????????????????????????????#?"out?of?range",?non-finite,?fractions
?????????????????????min?=?45L,?hour?=?c(21L,?3L,?NA,?4L),
?????????????????????mday?=?6L,?mon??=?c(11L,?NA,?3L),
?????????????????????year?=?116L,?wday?=?2L,?yday?=?340L,?isdst?=?1L))
as.POSIXct(dlt)[1]?is?NA?on?Linux?with?timezone?without?DST.?For?example,?after
Sys.setenv(TZ?=?"EST")
----------------