D | NitzDataTest.java | 38 NitzData nitz = NitzData.parse("40/06/20,01:02:03+4,1"); in testParse_beyond2038() local 39 assertEquals(createUnixEpochTime(2040, 6, 20, 1, 2, 3), nitz.getCurrentTimeInMillis()); in testParse_beyond2038() 40 assertEquals(TimeUnit.MINUTES.toMillis(4 * 15), nitz.getLocalOffsetMillis()); in testParse_beyond2038() 41 assertEquals(TimeUnit.MINUTES.toMillis(60), nitz.getDstAdjustmentMillis().longValue()); in testParse_beyond2038() 42 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_beyond2038() 58 NitzData nitz = NitzData.parse("15/06/20,01:02:03-1,0"); in testParse_withDst() local 59 assertEquals(createUnixEpochTime(2015, 6, 20, 1, 2, 3), nitz.getCurrentTimeInMillis()); in testParse_withDst() 60 assertEquals(TimeUnit.MINUTES.toMillis(-1 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst() 61 assertEquals(0, nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst() 62 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst() [all …]
|