/** * <p>Combines this local timestamp with the timezone offset UTC+00:00 * to a global UTC-moment. </p> * * @return global UTC-moment based on this local timestamp interpreted * at offset UTC+00:00 * @see #at(ZonalOffset) */ /*[deutsch] * <p>Kombiniert diesen lokalen Zeitstempel mit UTC+00:00 zu * einem globalen UTC-Moment. </p> * * @return global UTC-moment based on this local timestamp interpreted * at offset UTC+00:00 * @see #at(ZonalOffset) */ public Moment atUTC() { return this.at(ZonalOffset.UTC); }
private ZonalDateTime( PlainTimestamp tsp, ZonalOffset offset ) { super(); this.moment = tsp.at(offset); this.zone = Timezone.of(offset); this.timestamp = tsp; }
@Override protected MomentInterval nextInterval() { PlainTimestamp next; Boundary<Moment> s; Boundary<Moment> e; if (RecurrentMomentIntervals.this.isBackwards()) { next = this.current.minus(RecurrentMomentIntervals.this.duration); s = Boundary.ofClosed(next.at(offset)); e = Boundary.ofOpen(this.current.at(offset)); } else { next = this.current.plus(RecurrentMomentIntervals.this.duration); s = Boundary.ofClosed(this.current.at(offset)); e = Boundary.ofOpen(next.at(offset)); } this.current = next; return MomentIntervalFactory.INSTANCE.between(s, e); } };
private static long getTransitionTime( DaylightSavingRule rule, int year, int shift ) { PlainTimestamp tsp = rule.getDate(year).at(rule.getTimeOfDay()); return tsp.at(ZonalOffset.ofTotalSeconds(shift)).getPosixTime(); }
return tsp.at(offset);
return this.at(tz.getOffset(this.date, this.time));