MCPcopy Create free account
hub / github.com/GerritCodeReview/gerrit / now

Method now

java/com/google/gerrit/server/util/time/TimeUtil.java:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 public static Instant now() {
41 return Instant.ofEpochMilli(nowMs());
42 }
43
44 public static Instant truncateToSecond(Instant t) {
45 return Instant.ofEpochMilli(t.getEpochSecond() * 1000);

Callers 15

setUpMethod · 0.95
createCommitMethod · 0.95
newCommitBuilderMethod · 0.95
newPersonIdentMethod · 0.95
getAccountMethod · 0.95
createMetaDataUpdateMethod · 0.95
createAccountMethod · 0.95

Calls 1

nowMsMethod · 0.95

Tested by 15

setUpMethod · 0.76
createCommitMethod · 0.76
newCommitBuilderMethod · 0.76
newPersonIdentMethod · 0.76
getAccountMethod · 0.76
createMetaDataUpdateMethod · 0.76
createAccountMethod · 0.76
newPersonIdentMethod · 0.76