Home
last modified time | relevance | path

Searched refs:offsetSecs (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/time/zone/
DSer.java222 final int offsetSecs = offset.getTotalSeconds(); in writeOffset() local
223 int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72 in writeOffset()
226 out.writeInt(offsetSecs); in writeOffset()
/libcore/ojluni/src/main/java/java/time/
DZoneOffset.java780 final int offsetSecs = totalSeconds;
781 int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72
784 out.writeInt(offsetSecs);
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java333 Long offsetSecs = fieldValues.get(OFFSET_SECONDS); in resolveInstantFields() local
334 if (offsetSecs != null) { in resolveInstantFields()
335 ZoneOffset offset = ZoneOffset.ofTotalSeconds(offsetSecs.intValue()); in resolveInstantFields()
593 Long offsetSecs = fieldValues.get(OFFSET_SECONDS); in resolveInstant() local
594 if (offsetSecs != null) { in resolveInstant()
595 ZoneOffset offset = ZoneOffset.ofTotalSeconds(offsetSecs.intValue()); in resolveInstant()
DDateTimeFormatterBuilder.java3343 Long offsetSecs = context.getValue(OFFSET_SECONDS); in format() local
3344 if (offsetSecs == null) { in format()
3347 int totalSecs = Math.toIntExact(offsetSecs); in format()
3404 long offsetSecs = negative * (array[1] * 3600L + array[2] * 60L + array[3]); in parse() local
3405 return context.setParsedField(OFFSET_SECONDS, offsetSecs, position, array[0]); in parse()
3482 Long offsetSecs = context.getValue(OFFSET_SECONDS); in format() local
3483 if (offsetSecs == null) { in format()
3490 int totalSecs = Math.toIntExact(offsetSecs); in format()
3610 long offsetSecs = negative * (h * 3600L + m * 60L + s); in parse() local
3611 return context.setParsedField(OFFSET_SECONDS, offsetSecs, position, pos); in parse()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestZoneOffsetParser.java323 …public void test_parse_bigOffsets(String pattern, String parse, long offsetSecs) throws Exception { in test_parse_bigOffsets() argument
327 assertEquals(parsed.getLong(OFFSET_SECONDS), offsetSecs); in test_parse_bigOffsets() local