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

Method now

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

Source from the content-addressed store, hash-verified

235 * @return current local timestamp
236 */
237 public PlainTimestamp now() {
238
239 final UnixTime ut = this.timeSource.currentTime();
240 Timezone tz = (this.timezone == null) ? Timezone.ofSystem() : this.timezone;
241 return PlainTimestamp.from(ut, tz.getOffset(ut));
242
243 }
244
245 /**
246 * <p>Gets the current timestamp in the associated timezone and given chronology. </p>

Callers 7

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

Calls 13

ofSystemMethod · 0.95
fromMethod · 0.95
getOffsetMethod · 0.95
getIDMethod · 0.95
fromMethod · 0.95
toGeneralTimestampMethod · 0.95
currentTimeMethod · 0.65
createFromMethod · 0.65
getNameMethod · 0.65
getVariantMethod · 0.65
buildMethod · 0.45
setTimezoneMethod · 0.45

Tested by 4

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