package Ġorg . h ank ster . time Ċ Ċ import Ġorg . junit . Test Ċ import Ġjava . time .* Ċ import Ġjava . time . DayOfWeek .* Ċ import Ġjava . time . Month .* Ċ import Ġjava . time . temporal . Ch rono Field Ċ import Ġjava . time . temporal . Ch rono Field .* Ċ import Ġjava . time . temporal . Ch rono Unit Ċ import Ġjava . time . temporal . Ch rono Unit .* Ċ import Ġkotlin . test .* Ċ Ċ infix Ġ Ġfun Ġ< T > ĠT . should Equal ( expected : ĠT ) Ġ{ Ġexpect ( expected ) Ġ{ Ġthis Ġ}} Ċ class ĠTime Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` conversion Ġexpectations `() Ġ{ ĊĠĠĠĠ 1 . nan os Ġshould Equal ĠDuration . of Nan os ( 1 ) ĊĠĠĠĠ 1 . micro s Ġshould Equal ĠDuration . of Nan os ( 1 0 0 0 ) ĊĠĠĠĠ 1 . millis Ġshould Equal ĠDuration . of Millis ( 1 ) ĊĠĠĠĠ 1 . seconds Ġshould Equal ĠDuration . of Seconds ( 1 ) ĊĠĠĠĠ 1 . minutes Ġshould Equal ĠDuration . of Minutes ( 1 ) ĊĠĠĠĠ 1 . hours Ġshould Equal ĠDuration . of Hours ( 1 ) ĊĠĠĠĠ 1 . days Ġshould Equal ĠPeriod . of Days ( 1 ) ĊĠĠĠĠ 1 . week s Ġshould Equal ĠPeriod . of Week s ( 1 ) ĊĠĠĠĠ 1 . months Ġshould Equal ĠPeriod . of Months ( 1 ) ĊĠĠĠĠ 1 . years Ġshould Equal ĠPeriod . of Years ( 1 ) ĊĠĠĠĠ 1 L . nan os Ġshould Equal ĠDuration . of Nan os ( 1 ) ĊĠĠĠĠ 1 L . micro s Ġshould Equal ĠDuration . of Nan os ( 1 0 0 0 L ) ĊĠĠĠĠ 1 L . millis Ġshould Equal ĠDuration . of Millis ( 1 ) ĊĠĠĠĠ 1 L . seconds Ġshould Equal ĠDuration . of Seconds ( 1 ) ĊĠĠĠĠ 1 L . minutes Ġshould Equal ĠDuration . of Minutes ( 1 ) ĊĠĠĠĠ 1 L . hours Ġshould Equal ĠDuration . of Hours ( 1 ) ĊĠĠĠĠ 1 L . days Ġshould Equal ĠPeriod . of Days ( 1 ) ĊĠĠĠĠ 1 L . week s Ġshould Equal ĠPeriod . of Week s ( 1 ) ĊĠĠĠĠ 1 L . months Ġshould Equal ĠPeriod . of Months ( 1 ) ĊĠĠĠĠ 1 L . years Ġshould Equal ĠPeriod . of Years ( 1 ) ĊĠĠĠĠ 2 . 5 . nan os Ġshould Equal ĠDuration . of Nan os ( 2 ) ĊĠĠĠĠ 2 . 5 . micro s Ġshould Equal ĠDuration . of Nan os ( 2 5 0 0 ) ĊĠĠĠĠ 2 . 5 . millis Ġshould Equal ĠDuration . of Nan os ( 2 5 0 0 0 0 0 ) ĊĠĠĠĠ 2 . 5 . seconds Ġshould Equal ĠDuration . of Seconds ( 2 , Ġ 5 0 0 0 0 0 0 0 0 ) ĊĠĠĠĠ 2 . 5 . minutes Ġshould Equal ĠDuration . of Seconds ( 1 5 0 ) ĊĠĠĠĠ 2 . 5 . hours Ġshould Equal ĠDuration . of Minutes ( 1 5 0 ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` Temporal Amount Ġoperator Ġexpectations `() Ġ{ ĊĠĠĠ Ġ-( 1 . seconds ) Ġshould Equal ĠDuration . of Seconds (- 1 ) ĊĠĠĠ Ġ(- 1 ). seconds Ġshould Equal ĠDuration . of Seconds (- 1 ) ĊĠĠĠĠ 1 . seconds Ġ* Ġ- 1 Ġshould Equal ĠDuration . of Seconds (- 1 ) ĊĠĠĠĠ 2 . hours Ġ+ Ġ 3 . minutes Ġ+ Ġ 4 . seconds Ġ+ Ġ 5 . millis Ġ+ Ġ 6 . nan os Ġshould Equal ĠDuration . of Nan os ( 7 3 8 4 0 0 5 0 0 0 0 0 6 ) ĊĠĠĠĠ 1 . seconds Ġ* Ġ 2 Ġshould Equal ĠDuration . of Seconds ( 2 ) ĊĠĠĠĠ 2 . seconds Ġ/ Ġ 2 Ġshould Equal ĠDuration . of Seconds ( 1 ) ĊĠĠĠ Ġ-( 1 . days ) Ġshould Equal ĠPeriod . of Days (- 1 ) ĊĠĠĠ Ġ(- 1 ). days Ġshould Equal ĠPeriod . of Days (- 1 ) ĊĠĠĠĠ 1 . days Ġ* Ġ- 1 Ġshould Equal ĠPeriod . of Days (- 1 ) ĊĠĠĠĠ 1 . years Ġ+ Ġ 1 . months Ġ+ Ġ 1 . week s Ġ+ Ġ 1 . days Ġshould Equal ĠPeriod . of ( 1 , Ġ 1 , Ġ 8 ) ĊĠĠĠĠ 1 . years Ġ* Ġ 2 Ġshould Equal ĠPeriod . of Years ( 2 ) ĊĊĠĠĠ Ġ// ĠDuration Ġis Ġcomp arable , ĠPeriod Ġis Ġnot ĊĠĠĠ ĠassertTrue Ġ{ Ġ 1 . minutes Ġ< Ġ 1 . hours Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġ 1 . minutes Ġ<= Ġ 6 0 . seconds Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġ 1 0 0 0 . nan os Ġ== Ġ 1 . micro s Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` conversions Ġto ĠOffset DateTime `() Ġ{ ĊĠĠĠ ĠassertTrue Ġ{ Ġ 2 . hours . ago Ġ< ĠOffset DateTime . now ( Zone Offset . UTC ) Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġ 2 . hours . from Now Ġ> ĠOffset DateTime . now ( Zone Offset . UTC ) Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġ 2 . days . ago Ġ< Ġ 2 . hours . ago Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġ 2 . days . from Now Ġ> Ġ 2 . hours . from Now Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` destruct uring Ġassignment `() Ġ{ ĊĠĠĠ Ġval Ġ( sec , Ġnano ) Ġ= Ġ 2 . 5 . seconds ĊĠĠĠ Ġsec Ġshould Equal Ġ 2 ĊĠĠĠ Ġnano Ġshould Equal Ġ 5 0 0 0 0 0 0 0 0 ĊĊĠĠĠ Ġval Ġ( y , Ġm , Ġd ) Ġ= Ġ 1 . years Ġ+ Ġ 2 . months Ġ+ Ġ 3 . days ĊĠĠĠ Ġy Ġshould Equal Ġ 1 ĊĠĠĠ Ġm Ġshould Equal Ġ 2 ĊĠĠĠ Ġd Ġshould Equal Ġ 3 ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠYear `() Ġ{ ĊĊĠĠĠ Ġval Ġa Year Ġ= ĠYear . of ( 2 0 1 6 ) !! ĊĊĠĠĠĠ 2 0 1 6 . as Year Ġshould Equal ĠYear . of ( 2 0 1 6 ) ĊĊĠĠĠ Ġa Year . precision Ġshould Equal ĠYEAR S ĊĠĠĠ Ġa Year . yr Ġshould Equal ĠYear . of ( 2 0 1 6 ) ĊĊĠĠĠ Ġa Year Ġ+ ĠJ UNE Ġshould Equal ĠYear Month . of ( 2 0 1 6 , Ġ 6 ) ĊĊĠĠĠ Ġa Year Ġ+ Ġ 1 Ġshould Equal ĠYear . of ( 2 0 1 7 ) ĊĠĠĠ Ġa Year Ġ- Ġ 1 Ġshould Equal ĠYear . of ( 2 0 1 5 ) ĊĊĠĠĠ Ġa Year Ġ+ Ġ 1 . years Ġshould Equal ĠYear . of ( 2 0 1 7 ) ĊĠĠĠ Ġa Year Ġ- Ġ 1 . years Ġshould Equal ĠYear . of ( 2 0 1 5 ) ĊĊĠĠĠ Ġa Year [ YEAR ] Ġshould Equal Ġ 2 0 1 6 ĊĊĠĠĠ Ġvar Ġa Year Var Ġ= ĠYear . of ( 2 0 1 6 ) !! ĊĠĠĠ Ġ++ a Year Var Ġshould Equal ĠYear . of ( 2 0 1 7 ) ĊĠĠĠ Ġa Year Var Ġshould Equal ĠYear . of ( 2 0 1 7 ) ĊĊĠĠĠ Ġa Year Var Ġ= ĠYear . of ( 2 0 1 6 ) !! ĊĠĠĠ Ġa Year Var ++ Ġshould Equal ĠYear . of ( 2 0 1 6 ) ĊĠĠĠ Ġa Year Var Ġshould Equal ĠYear . of ( 2 0 1 7 ) ĊĊĠĠĠ Ġa Year Var Ġ= ĠYear . of ( 2 0 1 6 ) !! ĊĠĠĠ Ġ-- a Year Var Ġshould Equal ĠYear . of ( 2 0 1 5 ) ĊĠĠĠ Ġa Year Var Ġshould Equal ĠYear . of ( 2 0 1 5 ) ĊĊĠĠĠ Ġa Year Var Ġ= ĠYear . of ( 2 0 1 6 ) !! ĊĠĠĠ Ġa Year Var -- Ġshould Equal ĠYear . of ( 2 0 1 6 ) ĊĠĠĠ Ġa Year Var Ġshould Equal ĠYear . of ( 2 0 1 5 ) ĊĊĠĠĠ ĠassertTrue Ġ{ Ġa Year Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Year Ġsupports ĠCh rono Unit . YEAR S Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa Year Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa Year Ġsupports ĠCh rono Unit . MONTH S Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠYear Month `() Ġ{ ĊĊĠĠĠ Ġval Ġa Year Month Ġ= ĠYear Month . of ( 2 0 1 6 , Ġ 6 ) !! ĊĊĠĠĠ Ġa Year Month . precision Ġshould Equal ĠMON TH S ĊĠĠĠ Ġa Year Month . yr Ġshould Equal ĠYear . of ( 2 0 1 6 ) ĊĠĠĠ Ġa Year Month . month Ġshould Equal ĠJ UNE ĊĠĠĠ Ġa Year Month . year Month Ġshould Equal ĠYear Month . of ( 2 0 1 6 , Ġ 6 ) ĊĊĠĠĠ Ġa Year Month Ġ+ Ġ 1 . years Ġ+ Ġ 1 . months Ġshould Equal ĠYear Month . of ( 2 0 1 7 , Ġ 7 ) ĊĊĠĠĠ Ġa Year Month [ YEAR ] Ġshould Equal Ġ 2 0 1 6 ĊĠĠĠ Ġa Year Month [ MONTH _ OF _ YEAR ] Ġshould Equal Ġ 6 ĊĊĠĠĠ ĠassertTrue Ġ{ Ġa Year Month Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Year Month Ġsupports ĠCh rono Unit . YEAR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Year Month Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Year Month Ġsupports ĠCh rono Unit . MONTH S Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa Year Month Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa Year Month Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠMonth `() Ġ{ ĊĊĠĠĠĠ 6 . as Month Ġshould Equal ĠJ UNE ĊĊĠĠĠ ĠJ UNE . precision Ġshould Equal ĠMON TH S ĊĠĠĠ ĠJ UNE . month Ġshould Equal ĠJ UNE ĊĊĠĠĠ ĠJ UNE Ġ+ Ġ 1 Ġshould Equal ĠJ UL Y ĊĠĠĠ ĠJ UNE Ġ- Ġ 1 Ġshould Equal ĠMAY ĊĠĠĠ ĠDE CE MBER Ġ+ Ġ 1 Ġshould Equal ĠJ AN U ARY ĊĠĠĠ ĠJ AN U ARY Ġ- Ġ 1 Ġshould Equal ĠDE CE MBER ĊĊĠĠĠ ĠJ UNE [ MONTH _ OF _ YEAR ] Ġshould Equal Ġ 6 ĊĊĠĠĠ Ġvar Ġa Month Var Ġ= ĠJ UNE ĊĠĠĠ Ġ++ a Month Var Ġshould Equal ĠJ UL Y ĊĠĠĠ Ġa Month Var Ġshould Equal ĠJ UL Y ĊĊĠĠĠ Ġa Month Var Ġ= ĠJ UNE ĊĠĠĠ Ġa Month Var ++ Ġshould Equal ĠJ UNE ĊĠĠĠ Ġa Month Var Ġshould Equal ĠJ UL Y ĊĊĠĠĠ Ġa Month Var Ġ= ĠJ UNE ĊĠĠĠ Ġ-- a Month Var Ġshould Equal ĠMAY ĊĠĠĠ Ġa Month Var Ġshould Equal ĠMAY ĊĊĠĠĠ Ġa Month Var Ġ= ĠJ UNE ĊĠĠĠ Ġa Month Var -- Ġshould Equal ĠJ UNE ĊĠĠĠ Ġa Month Var Ġshould Equal ĠMAY ĊĊĠĠĠ ĠassertFalse Ġ{ ĠJ UNE Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ ĠJ UNE Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠMonth Day `() Ġ{ ĊĊĠĠĠ Ġval Ġa Month Day Ġ= ĠMonth Day . of ( 6 , Ġ 1 5 ) !! ĊĊĠĠĠ Ġa Month Day . month Ġshould Equal ĠJ UNE ĊĠĠĠ Ġa Month Day . day OfMonth Ġshould Equal Ġ 1 5 ĊĊĠĠĠ Ġa Month Day [ MONTH _ OF _ YEAR ] Ġshould Equal Ġ 6 ĊĠĠĠ Ġa Month Day [ DAY _ OF _ MONTH ] Ġshould Equal Ġ 1 5 ĊĊĠĠĠ ĠassertFalse Ġ{ Ġa Month Day Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Month Day Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Month Day Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠDay OfWeek `() Ġ{ ĊĊĠĠĠĠ 3 . as DayOfWeek Ġshould Equal ĠW ED N ES DAY ĊĊĠĠĠ ĠMON DAY . precision Ġshould Equal ĠDAY S ĊĊĠĠĠ ĠMON DAY Ġ+ Ġ 1 Ġshould Equal ĠT UES DAY ĊĠĠĠ ĠMON DAY Ġ- Ġ 1 Ġshould Equal ĠS UND AY ĊĊĠĠĠ ĠMON DAY . day OfWeek Ġshould Equal ĠMON DAY ĊĊĠĠĠ ĠMON DAY [ DAY _ OF _ WEEK ] Ġshould Equal Ġ 1 ĊĊĠĠĠ ĠassertTrue Ġ{ ĠMON DAY Ġsupports ĠCh rono Field . DAY _ OF _ WEEK Ġ} ĊĠĠĠ ĠassertFalse Ġ{ ĠMON DAY Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĊĠĠĠ Ġvar Ġa DayOfWeek Var Ġ= ĠW ED N ES DAY ĊĠĠĠ Ġ++ a DayOfWeek Var Ġshould Equal ĠTH UR SD AY ĊĠĠĠ Ġa DayOfWeek Var Ġshould Equal ĠTH UR SD AY ĊĊĠĠĠ Ġa DayOfWeek Var Ġ= ĠW ED N ES DAY ĊĠĠĠ Ġa DayOfWeek Var ++ Ġshould Equal ĠW ED N ES DAY ĊĠĠĠ Ġa DayOfWeek Var Ġshould Equal ĠTH UR SD AY ĊĊĠĠĠ Ġa DayOfWeek Var Ġ= ĠW ED N ES DAY ĊĠĠĠ Ġ-- a DayOfWeek Var Ġshould Equal ĠT UES DAY ĊĠĠĠ Ġa DayOfWeek Var Ġshould Equal ĠT UES DAY ĊĊĠĠĠ Ġa DayOfWeek Var Ġ= ĠW ED N ES DAY ĊĠĠĠ Ġa DayOfWeek Var -- Ġshould Equal ĠW ED N ES DAY ĊĠĠĠ Ġa DayOfWeek Var Ġshould Equal ĠT UES DAY ĊĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠInstant `() Ġ{ ĊĊĠĠĠ Ġval Ġan Instant Ġ= ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 0 0 0 0 0 0 , ĠZone Offset . UTC ). to Instant () !! ĊĊĠĠĠ Ġan Instant . precision Ġshould Equal ĠN AN OS ĊĠĠĠ Ġan Instant . instant Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 0 0 0 0 0 0 , ĠZone Offset . UTC ). to Instant () ĊĊĠĠĠ Ġan Instant Ġ+ Ġ 1 . seconds Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 6 , Ġ 6 0 0 0 0 0 0 , ĠZone Offset . UTC ). to Instant () ĊĊĠĠĠ Ġan Instant [ NAN O _ OF _ SECOND ] Ġshould Equal Ġ 6 0 0 0 0 0 0 ĊĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Field . NAN O _ OF _ SECOND Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Field . MICRO _ OF _ SECOND Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Field . MILLI _ OF _ SECOND Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Field . INST ANT _ SECONDS Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġan Instant Ġsupports ĠCh rono Field . SECOND _ OF _ MINUTE Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . NAN OS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . MIC ROS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . M ILL IS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . SECONDS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . MIN UTES Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . HOUR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġan Instant Ġsupports ĠCh rono Unit . MONTH S Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠLocalDate `() Ġ{ ĊĠĠĠ Ġval Ġa LocalDate Ġ= ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 2 ) !! ĊĊĠĠĠ Ġa LocalDate . precision Ġshould Equal ĠDAY S ĊĊĠĠĠ Ġa LocalDate . local Date Ġshould Equal Ġa LocalDate ĊĠĠĠ Ġa LocalDate . yr Ġshould Equal Ġ 2 0 1 7 . as Year ĊĠĠĠ Ġa LocalDate . year Month Ġshould Equal Ġ 2 0 1 7 . as Year Ġ+ ĠJ AN U ARY ĊĠĠĠ Ġa LocalDate . month Ġshould Equal ĠJ AN U ARY ĊĠĠĠ Ġa LocalDate . month Day Ġshould Equal ĠMonth Day . of ( 1 , Ġ 2 ) ĊĠĠĠ Ġa LocalDate . day OfWeek Ġshould Equal ĠMON DAY ĊĠĠĠ Ġa LocalDate . local Date Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 2 ) ĊĊĠĠĠ Ġa LocalDate . at Start OfMonth Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 1 ) ĊĠĠĠ Ġa LocalDate . at Start Of Next Month Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 2 , Ġ 1 ) ĊĠĠĠ Ġa LocalDate . at EndOf Month Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 3 1 ) ĊĠĠĠ Ġa LocalDate . at Start OfYear Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 1 ) ĊĠĠĠ Ġa LocalDate . at Start Of Next Year Ġshould Equal ĠLocalDate . of ( 2 0 1 8 , Ġ 1 , Ġ 1 ) ĊĠĠĠ Ġa LocalDate . at EndOf Year Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 2 , Ġ 3 1 ) ĊĊĠĠĠ Ġa LocalDate Ġ+ Ġ 1 . years Ġ+ Ġ 2 . months Ġ+ Ġ 3 . days Ġshould Equal ĠLocalDate . of ( 2 0 1 8 , Ġ 3 , Ġ 5 ) ĊĊĠĠĠ Ġa LocalDate [ YEAR ] Ġshould Equal Ġ 2 0 1 7 ĊĠĠĠ Ġa LocalDate [ MONTH _ OF _ YEAR ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa LocalDate [ DAY _ OF _ MONTH ] Ġshould Equal Ġ 2 ĊĊĠĠĠ ĠassertFalse Ġ{ Ġa LocalDate Ġsupports ĠCh rono Unit . HOUR S Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa LocalDate Ġsupports ĠCh rono Field . HOUR _ OF _ DAY Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDate Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDate Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDate Ġsupports ĠCh rono Unit . MONTH S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDate Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDate Ġsupports ĠCh rono Unit . YEAR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDate Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠLocal Time `() Ġ{ ĊĠĠĠ Ġval Ġa Local Time Ġ= ĠLocal Time . of ( 1 3 , Ġ 4 , Ġ 5 ) !! ĊĊĠĠĠ Ġa Local Time . precision Ġshould Equal ĠN AN OS ĊĊĠĠĠ Ġa Local Time . local Time Ġshould Equal ĠLocal Time . of ( 1 3 , Ġ 4 , Ġ 5 ) ĊĊĠĠĠ Ġa Local Time Ġ+ Ġ 1 . hours Ġ+ Ġ 2 . minutes Ġ+ Ġ 3 . seconds Ġshould Equal ĠLocal Time . of ( 1 4 , Ġ 6 , Ġ 8 ) ĊĊĠĠĠ Ġa Local Time [ HOUR _ OF _ DAY ] Ġshould Equal Ġ 1 3 ĊĠĠĠ Ġa Local Time [ HOUR _ OF _ AMP M ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa Local Time [ AMP M _ OF _ DAY ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa Local Time [ MINUTE _ OF _ HOUR ] Ġshould Equal Ġ 4 ĊĠĠĠ Ġa Local Time [ SECOND _ OF _ MINUTE ] Ġshould Equal Ġ 5 ĊĊĠĠĠ ĠassertTrue Ġ{ Ġa Local Time Ġsupports ĠCh rono Unit . SECONDS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Local Time Ġsupports ĠCh rono Field . SECOND _ OF _ MINUTE Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Local Time Ġsupports ĠCh rono Unit . MIN UTES Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Local Time Ġsupports ĠCh rono Field . MINUTE _ OF _ HOUR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Local Time Ġsupports ĠCh rono Unit . HOUR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Local Time Ġsupports ĠCh rono Field . HOUR _ OF _ DAY Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa Local Time Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa Local Time Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa Local Time Ġsupports ĠCh rono Field . OFFSET _ SECONDS Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠLocalDateTime `() Ġ{ ĊĠĠĠ Ġval Ġa LocalDateTime Ġ= ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 ) !! ĊĊĠĠĠ Ġa LocalDateTime . precision Ġshould Equal ĠN AN OS ĊĊĠĠĠ Ġa LocalDateTime . yr Ġshould Equal Ġ 2 0 1 7 . as Year ĊĠĠĠ Ġa LocalDateTime . year Month Ġshould Equal Ġ 2 0 1 7 . as Year Ġ+ ĠJ AN U ARY ĊĠĠĠ Ġa LocalDateTime . month Ġshould Equal ĠJ AN U ARY ĊĠĠĠ Ġa LocalDateTime . month Day Ġshould Equal ĠMonth Day . of ( 1 , Ġ 2 ) ĊĠĠĠ Ġa LocalDateTime . day OfWeek Ġshould Equal ĠMON DAY ĊĠĠĠ Ġa LocalDateTime . local Date Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 2 ) ĊĠĠĠ Ġa LocalDateTime . local Time Ġshould Equal ĠLocal Time . of ( 1 3 , Ġ 4 , Ġ 5 ) ĊĠĠĠ Ġa LocalDateTime . local DateTime Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 ) ĊĊĠĠĠ Ġa LocalDateTime . at Start OfMonth Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 ) ĊĠĠĠ Ġa LocalDateTime . at Start Of Next Month Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 2 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 ) ĊĠĠĠ Ġa LocalDateTime . at EndOf Month Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 3 1 , Ġ 1 3 , Ġ 4 , Ġ 5 ) ĊĠĠĠ Ġa LocalDateTime . at Start OfYear Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 ) ĊĠĠĠ Ġa LocalDateTime . at Start Of Next Year Ġshould Equal ĠLocalDateTime . of ( 2 0 1 8 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 ) ĊĠĠĠ Ġa LocalDateTime . at EndOf Year Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 2 , Ġ 3 1 , Ġ 1 3 , Ġ 4 , Ġ 5 ) ĊĊĠĠĠ Ġa LocalDateTime Ġ+ Ġ 1 . years Ġ+ Ġ 2 . months Ġ+ Ġ 3 . days Ġ+ ĊĠĠĠĠĠĠĠĠ 4 . hours Ġ+ Ġ 5 . minutes Ġ+ Ġ 6 . seconds Ġshould Equal ĠLocalDateTime . of ( 2 0 1 8 , Ġ 3 , Ġ 5 , Ġ 1 7 , Ġ 9 , Ġ 1 1 ) ĊĊĠĠĠ Ġa LocalDateTime [ YEAR ] Ġshould Equal Ġ 2 0 1 7 ĊĠĠĠ Ġa LocalDateTime [ MONTH _ OF _ YEAR ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa LocalDateTime [ DAY _ OF _ MONTH ] Ġshould Equal Ġ 2 ĊĠĠĠ Ġa LocalDateTime [ HOUR _ OF _ DAY ] Ġshould Equal Ġ 1 3 ĊĠĠĠ Ġa LocalDateTime [ HOUR _ OF _ AMP M ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa LocalDateTime [ AMP M _ OF _ DAY ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa LocalDateTime [ MINUTE _ OF _ HOUR ] Ġshould Equal Ġ 4 ĊĠĠĠ Ġa LocalDateTime [ SECOND _ OF _ MINUTE ] Ġshould Equal Ġ 5 ĊĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Unit . SECONDS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Field . SECOND _ OF _ MINUTE Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Unit . MIN UTES Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Field . MINUTE _ OF _ HOUR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Unit . HOUR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Field . HOUR _ OF _ DAY Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Unit . MONTH S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Unit . YEAR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġa LocalDateTime Ġsupports ĠCh rono Field . OFFSET _ SECONDS Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠOffset Time `() Ġ{ ĊĠĠĠ Ġval Ġan Offset Time Ġ= ĠOffset Time . of ( 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) !! ĊĊĠĠĠ Ġan Offset Time . precision Ġshould Equal ĠN AN OS ĊĊĠĠĠ Ġan Offset Time . local Time Ġshould Equal ĠLocal Time . of ( 1 3 , Ġ 4 , Ġ 5 , Ġ 6 ) ĊĠĠĠ Ġan Offset Time . offset Time Ġshould Equal ĠOffset Time . of ( 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĊĠĠĠ Ġan Offset Time Ġ+ Ġ 1 . hours Ġ+ Ġ 2 . minutes Ġ+ Ġ 3 . seconds Ġshould Equal ĠOffset Time . of ( 1 4 , Ġ 6 , Ġ 8 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĊĠĠĠ Ġan Offset Time [ HOUR _ OF _ DAY ] Ġshould Equal Ġ 1 3 ĊĠĠĠ Ġan Offset Time [ HOUR _ OF _ AMP M ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġan Offset Time [ AMP M _ OF _ DAY ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġan Offset Time [ MINUTE _ OF _ HOUR ] Ġshould Equal Ġ 4 ĊĠĠĠ Ġan Offset Time [ SECOND _ OF _ MINUTE ] Ġshould Equal Ġ 5 ĊĠĠĠ Ġan Offset Time [ OFFSET _ SECONDS ] Ġshould Equal Ġ- 7 Ġ* Ġ 6 0 Ġ* Ġ 6 0 ĊĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset Time Ġsupports ĠCh rono Unit . SECONDS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset Time Ġsupports ĠCh rono Field . SECOND _ OF _ MINUTE Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset Time Ġsupports ĠCh rono Unit . MIN UTES Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset Time Ġsupports ĠCh rono Field . MINUTE _ OF _ HOUR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset Time Ġsupports ĠCh rono Unit . HOUR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset Time Ġsupports ĠCh rono Field . HOUR _ OF _ DAY Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġan Offset Time Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠĠĠ ĠassertFalse Ġ{ Ġan Offset Time Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset Time Ġsupports ĠCh rono Field . OFFSET _ SECONDS Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠOffset DateTime `() Ġ{ ĊĠĠĠ Ġval Ġan Offset DateTime Ġ= ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) !! ĊĊĠĠĠ Ġan Offset DateTime . precision Ġshould Equal ĠN AN OS ĊĊĠĠĠ Ġan Offset DateTime . yr Ġshould Equal Ġ 2 0 1 7 . as Year ĊĠĠĠ Ġan Offset DateTime . year Month Ġshould Equal Ġ 2 0 1 7 . as Year Ġ+ ĠJ AN U ARY ĊĠĠĠ Ġan Offset DateTime . month Ġshould Equal ĠMonth . of ( 1 ) ĊĠĠĠ Ġan Offset DateTime . month Day Ġshould Equal ĠMonth Day . of ( 1 , Ġ 2 ) ĊĠĠĠ Ġan Offset DateTime . day OfWeek Ġshould Equal ĠMON DAY ĊĠĠĠ Ġan Offset DateTime . instant Ġshould Equal ĠInstant . of Epoch Second ( 1 4 8 3 3 8 7 4 4 5 , Ġ 6 ) ĊĠĠĠ Ġan Offset DateTime . local Time Ġshould Equal ĠLocal Time . of ( 1 3 , Ġ 4 , Ġ 5 , Ġ 6 ) ĊĠĠĠ Ġan Offset DateTime . local Date Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 2 ) ĊĠĠĠ Ġan Offset DateTime . local DateTime Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 ) ĊĠĠĠ Ġan Offset DateTime . offset Time Ġshould Equal ĠOffset Time . of ( 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime . offset DateTime Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime . zone Offset Ġshould Equal ĠZone Offset . of Hours (- 7 ) ĊĠĠĠ Ġan Offset DateTime . zone Id Ġshould Equal ĠZone Offset . of Hours (- 7 ) ĊĠĠĠ Ġan Offset DateTime . zone Ġshould Equal ĠZone Offset . of Hours (- 7 ) ĊĊĠĠĠ Ġan Offset DateTime . at Start OfMonth Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime . at Start Of Next Month Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 2 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime . at EndOf Month Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 3 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime . at Start OfYear Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime . at Start Of Next Year Ġshould Equal ĠOffset DateTime . of ( 2 0 1 8 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime . at EndOf Year Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 2 , Ġ 3 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĊĠĠĠ Ġan Offset DateTime Ġ+ Ġ 1 . years Ġ+ Ġ 2 . months Ġ+ Ġ 3 . days Ġ+ ĊĠĠĠĠĠĠĠĠ 4 . hours Ġ+ Ġ 5 . minutes Ġ+ Ġ 6 . seconds Ġshould Equal ĠOffset DateTime . of ( 2 0 1 8 , Ġ 3 , Ġ 5 , Ġ 1 7 , Ġ 9 , Ġ 1 1 , Ġ 6 , ĊĠĠĠĠĠĠĠ ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġan Offset DateTime [ YEAR ] Ġshould Equal Ġ 2 0 1 7 ĊĠĠĠ Ġan Offset DateTime [ MONTH _ OF _ YEAR ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġan Offset DateTime [ DAY _ OF _ MONTH ] Ġshould Equal Ġ 2 ĊĠĠĠ Ġan Offset DateTime [ HOUR _ OF _ DAY ] Ġshould Equal Ġ 1 3 ĊĠĠĠ Ġan Offset DateTime [ HOUR _ OF _ AMP M ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġan Offset DateTime [ AMP M _ OF _ DAY ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġan Offset DateTime [ MINUTE _ OF _ HOUR ] Ġshould Equal Ġ 4 ĊĠĠĠ Ġan Offset DateTime [ SECOND _ OF _ MINUTE ] Ġshould Equal Ġ 5 ĊĠĠĠ Ġan Offset DateTime [ OFFSET _ SECONDS ] Ġshould Equal Ġ- 7 Ġ* Ġ 6 0 Ġ* Ġ 6 0 ĊĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Unit . SECONDS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Field . SECOND _ OF _ MINUTE Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Unit . MIN UTES Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Field . MINUTE _ OF _ HOUR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Unit . HOUR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Field . HOUR _ OF _ DAY Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Unit . MONTH S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Unit . YEAR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġan Offset DateTime Ġsupports ĠCh rono Field . OFFSET _ SECONDS Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠZone Offset `() Ġ{ ĊĠĠĠ Ġval Ġa Zone Offset Ġ= ĠZone Offset . of Hours (- 7 ) !! ĊĊĠĠĠ Ġa Zone Offset . zone Offset Ġshould Equal ĠZone Offset . of Hours (- 7 ) ĊĠĠĠ Ġa Zone Offset . zone Ġshould Equal ĠZone Offset . of Hours (- 7 ) ĊĊĠĠĠ ĠassertTrue Ġ{ Ġa Zone Offset Ġsupports ĠCh rono Field . OFFSET _ SECONDS Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` operations Ġon ĠZ onedDateTime `() Ġ{ ĊĠĠĠ Ġval Ġa Z onedDateTime Ġ= ĠZ onedDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) !! ĊĊĠĠĠ Ġa Z onedDateTime . precision Ġshould Equal ĠN AN OS ĊĊĠĠĠ Ġa Z onedDateTime . yr Ġshould Equal Ġ 2 0 1 7 . as Year ĊĠĠĠ Ġa Z onedDateTime . year Month Ġshould Equal Ġ 2 0 1 7 . as Year Ġ+ ĠJ AN U ARY ĊĠĠĠ Ġa Z onedDateTime . month Ġshould Equal ĠMonth . of ( 1 ) ĊĠĠĠ Ġa Z onedDateTime . month Day Ġshould Equal ĠMonth Day . of ( 1 , Ġ 2 ) ĊĠĠĠ Ġa Z onedDateTime . day OfWeek Ġshould Equal ĠMON DAY ĊĠĠĠ Ġa Z onedDateTime . instant Ġshould Equal ĠInstant . of Epoch Second ( 1 4 8 3 3 8 7 4 4 5 , Ġ 6 ) ĊĠĠĠ Ġa Z onedDateTime . local Time Ġshould Equal ĠLocal Time . of ( 1 3 , Ġ 4 , Ġ 5 , Ġ 6 ) ĊĠĠĠ Ġa Z onedDateTime . local Date Ġshould Equal ĠLocalDate . of ( 2 0 1 7 , Ġ 1 , Ġ 2 ) ĊĠĠĠ Ġa Z onedDateTime . local DateTime Ġshould Equal ĠLocalDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 ) ĊĠĠĠ Ġa Z onedDateTime . offset Time Ġshould Equal ĠOffset Time . of ( 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġa Z onedDateTime . offset DateTime Ġshould Equal ĠOffset DateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Offset . of Hours (- 7 )) ĊĠĠĠ Ġa Z onedDateTime . zone Offset Ġshould Equal ĠZone Offset . of Hours (- 7 ) ĊĠĠĠ Ġa Z onedDateTime . zone Id Ġshould Equal ĠZone Id . of (" America / Den ver ") ĊĠĠĠ Ġa Z onedDateTime . zone Ġshould Equal ĠZone Id . of (" America / Den ver ") ĊĠĠĠ Ġa Z onedDateTime . zon ed DateTime Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 2 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĊĠĠĠ Ġa Z onedDateTime . at Start OfMonth Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĠĠĠ Ġa Z onedDateTime . at Start Of Next Month Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 7 , Ġ 2 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĠĠĠ Ġa Z onedDateTime . at EndOf Month Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 3 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĠĠĠ Ġa Z onedDateTime . at Start OfYear Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 7 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĠĠĠ Ġa Z onedDateTime . at Start Of Next Year Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 8 , Ġ 1 , Ġ 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĠĠĠ Ġa Z onedDateTime . at EndOf Year Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 7 , Ġ 1 2 , Ġ 3 1 , Ġ 1 3 , Ġ 4 , Ġ 5 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĊĠĠĠ Ġa Z onedDateTime Ġ+ Ġ 1 . years Ġ+ Ġ 2 . months Ġ+ Ġ 3 . days Ġ+ ĊĠĠĠĠĠĠĠĠ 4 . hours Ġ+ Ġ 5 . minutes Ġ+ Ġ 6 . seconds Ġshould Equal ĠZ onedDateTime . of ( 2 0 1 8 , Ġ 3 , Ġ 5 , Ġ 1 7 , Ġ 9 , Ġ 1 1 , Ġ 6 , ĠZone Id . of (" America / Den ver ")) ĊĠĠĠ Ġa Z onedDateTime [ YEAR ] Ġshould Equal Ġ 2 0 1 7 ĊĠĠĠ Ġa Z onedDateTime [ MONTH _ OF _ YEAR ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa Z onedDateTime [ DAY _ OF _ MONTH ] Ġshould Equal Ġ 2 ĊĠĠĠ Ġa Z onedDateTime [ HOUR _ OF _ DAY ] Ġshould Equal Ġ 1 3 ĊĠĠĠ Ġa Z onedDateTime [ HOUR _ OF _ AMP M ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa Z onedDateTime [ AMP M _ OF _ DAY ] Ġshould Equal Ġ 1 ĊĠĠĠ Ġa Z onedDateTime [ MINUTE _ OF _ HOUR ] Ġshould Equal Ġ 4 ĊĠĠĠ Ġa Z onedDateTime [ SECOND _ OF _ MINUTE ] Ġshould Equal Ġ 5 ĊĠĠĠ Ġa Z onedDateTime [ OFFSET _ SECONDS ] Ġshould Equal Ġ- 7 Ġ* Ġ 6 0 Ġ* Ġ 6 0 ĊĠĠĠĠĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Unit . SECONDS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Field . SECOND _ OF _ MINUTE Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Unit . MIN UTES Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Field . MINUTE _ OF _ HOUR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Unit . HOUR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Field . HOUR _ OF _ DAY Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Unit . DAYS Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Field . DAY _ OF _ MONTH Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Unit . MONTH S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Field . MONTH _ OF _ YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Unit . YEAR S Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Field . YEAR Ġ} ĊĠĠĠ ĠassertTrue Ġ{ Ġa Z onedDateTime Ġsupports ĠCh rono Field . OFFSET _ SECONDS Ġ} ĊĠ Ġ} Ċ Ċ } Ċ