D | NitzDataTest.java | 49 NitzData nitz = NitzData.parse("15/06/20,01:02:03-1,0"); in testParse_withDst() local 50 assertEquals(createUtcTime(2015, 6, 20, 1, 2, 3), nitz.getCurrentTimeInMillis()); in testParse_withDst() 51 assertEquals(TimeUnit.MINUTES.toMillis(-1 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst() 52 assertEquals(0, nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst() 53 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst() 56 NitzData nitz = NitzData.parse("15/06/20,01:02:03+8,1"); in testParse_withDst() local 57 assertEquals(createUtcTime(2015, 6, 20, 1, 2, 3), nitz.getCurrentTimeInMillis()); in testParse_withDst() 58 assertEquals(TimeUnit.MINUTES.toMillis(8 * 15), nitz.getLocalOffsetMillis()); in testParse_withDst() 59 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst() 60 assertNull(nitz.getEmulatorHostTimeZone()); in testParse_withDst() [all …]
|