timeZoneS
Class
timeZoneS
object.
timeZoneS() timeZoneS(offset=0, yearfrom=integer(0), yearto=integer(0), hasdaylight=logical(0), dsextra=integer(0), monthstart=integer(0), codestart=integer(0), daystart=integer(0), xdaystart=integer(0), timestart=integer(0), monthend=integer(0), codeend=integer(0), dayend=integer(0), xdayend=integer(0), timeend=integer(0), rules)
offset
and
rules
define the components
of the rules for when to go on daylight savings. Each of them is a
vector with one component for each rule.
monthend
for southern hemisphere).
daystart
and
xdaystart
to
calculate the days within the month for starting daylight
savings time.
1: start on the
daystart
(1-31) day of the month.
2: start on the last
daystart
(0-Sunday through 6-Saturday) weekday
in the month.
3: start on the first
daystart
weekday (0-Sunday through 6-Saturday)
on or after the
xdaystart
(1-31) day of the month.
4: start on the last
daystart
weekday (0-Sunday through 6-Saturday)
on or before the
xdaystart
(1-31) day of the month.
codestart
.
codestart
.
codestart
, etc.
monthstart
for southern hemisphere).
dayend
and
xdayend
to
calculate the day within the month for ending daylight
savings time.
1: end on the
dayend
(1-31) day of the month.
2: end on the last
dayend
(0-Sunday through 6-Saturday) weekday
in the month.
3: end on the first
dayend
weekday (0-Sunday through 6-Saturday)
on or after the
xdayend
(1-31) day of the month.
4: end on the last
dayend
weekday (0-Sunday through 6-Saturday)
on or before the
xdayend
(1-31) day of the month.
codeend
.
codeend
.
codeend
, etc.
offset
if not missing,
and must contain columns corresponding to those arguments in that
order, or be completely empty. Note that the columns should all be
integer; see
timeZoneS
class documentation for more information).
timeZoneS
object with the given name, or the default time zone
if no arguments are supplied.
The
timeZoneS
class is a way for users to define their own time zones.
In order to use them in
timeDate
objects, they must also be added
to the time zone list (see
timeZoneList
for more information).
timeZoneS() timeZoneS(offset=3*3600) # time zone with daylight time that changed to daylight time on the # last Sunday in April and last Sunday in September through 1989, # and then on the 1st Sunday in May and October thereafter. # Each time change occurs at 2AM local standard time. timeZoneS( offset = 3600, yearfrom=c( -1, 1990), yearto=c( 1989, -1 ), hasdaylight=c( T, T ), dsextra=c( 3600, 3600 ), monthstart=c( 4, 5 ), codestart=c( 2, 3 ), daystart=c( 0, 0 ), xdaystart=c(0,1), timestart=c( 2*3600, 2*3600 ), monthend=c( 9, 10 ), codeend=c( 2, 3 ), dayend=c( 0, 0 ), xdayend=c(0,1), timeend=c(2*3600, 2*3600))