private void writeTimestamp(DataOutput out) throws IOException { PlainTimestamp ts = (PlainTimestamp) this.obj; writeDate(ts.getCalendarDate(), TIMESTAMP_TYPE, out); writeTime(ts.getWallTime(), out); }
Date jud = sdf.parse(parseable, position); PlainTimestamp tsp = TemporalType.JAVA_UTIL_DATE.translate(jud).toZonalTimestamp(ZonalOffset.UTC); result = tsp.getWallTime(); updateRawValues(rawValues, sdf); } else if (this.type.equals(PlainTimestamp.class)) {
/** * <p>Common conversion method. </p> * * @param time ISO-time * @return PlainTime */ /*[deutsch] * <p>Allgemeine Konversionsmethode. </p> * * @param time ISO-time * @return PlainTime */ public static PlainTime from(WallTime time) { if (time instanceof PlainTime) { return (PlainTime) time; } else if (time instanceof PlainTimestamp) { return ((PlainTimestamp) time).getWallTime(); } else { return PlainTime.of( time.getHour(), time.getMinute(), time.getSecond(), time.getNanosecond()); } }
@Override public PlainTimestamp apply(PlainTimestamp entity) { PlainTime oldTime = entity.getWallTime(); if (this.value.isSimultaneous(oldTime)) { return this.handleSameTimes(entity); } else if (this.value.getHour() == 24) { return this.handleMidnight24(entity); } else if (this.value.isAfter(oldTime)) { return this.handleLater(entity); } else { return this.handleEarlier(entity); } }
private FullValueOperator(int type) { super(PlainTime.COMPONENT, type); this.tsop = entity -> { PlainTime time = doApply(entity.getWallTime()); if (time.getHour() == 24) { return PlainTimestamp.of( entity.getCalendarDate().plus(1, DAYS), PlainTime.midnightAtStartOfDay()); } else { return entity.with(time); } }; }
PlainTime time = tsp.getWallTime(); int deviation = startOfDay.getDeviation(tsp.getCalendarDate(), tzid); tsp = tsp.minus(deviation, ClockUnit.SECONDS);
Iso8601Format.ofDate(dateStyle).print(start.getCalendarDate(), buffer); buffer.append('T'); timePrinter.print(start.getWallTime(), buffer); timePrinter.print(end.getWallTime(), buffer); } else if (interval.getEnd().isInfinite()) { if (printer == null) {
PlainTime time = tsp.getWallTime(); int deviation = startOfDay.getDeviation(tsp.getCalendarDate(), tzid); tsp = tsp.minus(deviation, ClockUnit.SECONDS);
: Iso8601Format.ofBasicTime(decimalStyle, precision)); Set<ElementPosition> positions = timePrinter.print(tsp2.getWallTime(), buffer);
return PlainTimestamp.axis().createFrom(entity, attributes, lenient, preparsing).getWallTime(); } else if (entity.contains(WALL_TIME)) { return entity.get(WALL_TIME);