Tools.h++ Manual
104011 Tandem Computers Incorporated 21-237
21
Likewise for Japan:
RWZone::local(new RWZoneSimple(RWZone::Japan,
RWZone::NoDST))
;
For France:
RWZone::local(new RWZoneSimple(RWZone::Europe,
RWZone::WeEu))
;
Here are the rules used internally for the
RWZone::NoAm
and
RWZone::WeEu
values of
RWZone::DstRule:
// last Sun in Apr to last in Oct:
const RWDaylightRuleusRuleAuld =
{ 0, 0000, 1, { 3, 4, 0, 120 }, { 9, 4,
0, 120 } };
// first Sun in Apr to last in Oct
const RWDaylightRuleusRule67 =
{ &usRuleAuld, 1967, 1, { 3, 0, 0, 120 }, { 9, 4, 0,
120 } };
// first Sun in Jan to last in Oct:
const RWDaylightRuleusRule74 =
{ &usRule67, 1974, 1, { 0, 0, 0, 120 }, { 9, 4, 0,
120 } };
// last Sun in Feb to last in Oct
const RWDaylightRuleusRule75 =
{ &usRule74, 1975, 1, { 1, 4, 0, 120 }, { 9, 4, 0,
120 } };
// last Sun in Apr to last in Oct
const RWDaylightRuleusRule76 =
{ &usRule75, 1976, 1, { 3, 4, 0, 120 }, { 9, 4, 0,
120 } };
// first Sun in Apr to last in Oct
const RWDaylightRuleusRuleLate =
{ &usRule76, 1987, 1, { 3, 0, 0, 120 }, { 9, 4, 0,
120 } };
// last Sun in Mar to last in Sep
const RWDaylightRuleeuRuleLate =
{ 0, 0000, 1, { 2, 4, 0, 120 }, { 8, 4, 0,
120 } };