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.java224 final int offsetSecs = offset.getTotalSeconds(); in writeOffset() local
225 int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72 in writeOffset()
228 out.writeInt(offsetSecs); in writeOffset()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java226 Long offsetSecs = fieldValues.get(OFFSET_SECONDS); in query() local
227 if (offsetSecs != null) { in query()
228 return (R) ZoneOffset.ofTotalSeconds(offsetSecs.intValue()); in query()
347 Long offsetSecs = fieldValues.get(OFFSET_SECONDS); in resolveInstantFields() local
348 if (offsetSecs != null) { in resolveInstantFields()
349 ZoneOffset offset = ZoneOffset.ofTotalSeconds(offsetSecs.intValue()); in resolveInstantFields()
648 Long offsetSecs = fieldValues.get(OFFSET_SECONDS); in resolveInstant() local
649 if (offsetSecs != null) { in resolveInstant()
650 ZoneOffset offset = ZoneOffset.ofTotalSeconds(offsetSecs.intValue()); in resolveInstant()
DDateTimeFormatterBuilder.java3663 Long offsetSecs = context.getValue(OFFSET_SECONDS); in format() local
3664 if (offsetSecs == null) { in format()
3667 int totalSecs = Math.toIntExact(offsetSecs); in format()
3807 long offsetSecs = negative * (array[1] * 3600L + array[2] * 60L + array[3]); in parse() local
3808 return context.setParsedField(OFFSET_SECONDS, offsetSecs, position, array[0]); in parse()
3962 Long offsetSecs = context.getValue(OFFSET_SECONDS); in format() local
3963 if (offsetSecs == null) { in format()
3974 int totalSecs = Math.toIntExact(offsetSecs); in format()
4098 long offsetSecs = negative * (h * 3600L + m * 60L + s); in parse() local
4099 return context.setParsedField(OFFSET_SECONDS, offsetSecs, position, pos); in parse()
/libcore/ojluni/src/main/java/java/time/
DZoneOffset.java784 final int offsetSecs = totalSeconds;
785 int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72
788 out.writeInt(offsetSecs);
/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