MCPcopy Create free account
hub / github.com/MenoData/Time4J / today

Method today

base/src/main/java/net/time4j/ZonalClock.java:213–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 * @return calendar date representing today
212 */
213 public PlainDate today() {
214
215 final UnixTime ut = this.timeSource.currentTime();
216 Timezone tz = (this.timezone == null) ? Timezone.ofSystem() : this.timezone;
217 return PlainDate.from(ut, tz.getOffset(ut));
218
219 }
220
221 /**
222 * <p>Gets the current timestamp in the associated timezone. </p>

Callers 6

todayMethod · 0.95
currentYearMethod · 0.95
currentValueMethod · 0.95
currentValueMethod · 0.95
currentValueMethod · 0.95
nowInSystemTimeMethod · 0.45

Calls 4

ofSystemMethod · 0.95
fromMethod · 0.95
getOffsetMethod · 0.95
currentTimeMethod · 0.65

Tested by 5

todayMethod · 0.76
currentYearMethod · 0.76
currentValueMethod · 0.76
currentValueMethod · 0.76
currentValueMethod · 0.76