Nt1330 Unit 1 Assignment 2

101 Words1 Page

13.2.14 ZoneIdClass A ZoneId Class is used to recognise the rules used to convert between an Instant and a LocalDateTime. The two different ID types follow: 1. Fixed offsets-- The unchangeable offset from UTC/Greenwich that uses the same offset for all local Date-Times. 2. Geographical regions – Consist of definite set of rules for finding the offset from UTC/Greenwich pertains in that zone. Most static offsets are denoted by ZoneOffset. Calling normalized() on any ZoneId will ensure that a fixed offset ID will be formed as a ZoneOffset. Code snippet 14displays an example for ZoneId along with ZonedDateTime and LocalDateTime classes.

More about Nt1330 Unit 1 Assignment 2

Open Document