import
java.io.*;
import
java.time.*;
import
java.time.chrono.*;
import
java.time.zone.*;
import
java.util.*;
public
class
GeeksForGeeks {
public
static
void
main(String args[])
{
int
year1 =
1996
, year2 =
2001
;
ZoneOffset ofSet1 = ZoneOffset.ofTotalSeconds(
5
);
ZoneOffset ofSet2 = ZoneOffset.ofTotalSeconds(
2
);
ZoneOffsetTransition z1 = ZoneOffsetTransition.of(
LocalDateTime.of(year1,
11
,
24
,
03
,
24
,
48
,
0
),
ofSet1, ofSet2);
ZoneOffsetTransition z2 = ZoneOffsetTransition.of(
LocalDateTime.of(year2,
10
,
30
,
01
,
21
,
52
,
0
),
ofSet1, ofSet2);
boolean
ans = z1.equals(z2);
if
(ans)
System.out.println(
"The transition zones match!"
);
else
System.out.println(
"Sorry, the transition zones do not match!"
);
ZoneOffset zone = z1.getOffsetAfter();
System.out.println(
"The offsetAfter of the first transition zone is"
+ zone);
}
}