Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
setUp
Method · 0.95
InternalGroupSerializerTest
Class · 0.95
createCommit
Method · 0.95
newCommitBuilder
Method · 0.95
abstractGroupTestSetUp
Method · 0.95
newPersonIdent
Method · 0.95
getAccount
Method · 0.95
createdOnDefaultsToNow
Method · 0.95
commitTimeMatchesDefaultCreatedOnOfNewGroup
Method · 0.95
commitTimeMatchesDefaultUpdatedOnOfUpdatedGroup
Method · 0.95
createMetaDataUpdate
Method · 0.95
createAccount
Method · 0.95
Calls
1
nowMs
Method · 0.95
Tested by
15
setUp
Method · 0.76
createCommit
Method · 0.76
newCommitBuilder
Method · 0.76
abstractGroupTestSetUp
Method · 0.76
newPersonIdent
Method · 0.76
getAccount
Method · 0.76
createdOnDefaultsToNow
Method · 0.76
commitTimeMatchesDefaultCreatedOnOfNewGroup
Method · 0.76
commitTimeMatchesDefaultUpdatedOnOfUpdatedGroup
Method · 0.76
createMetaDataUpdate
Method · 0.76
createAccount
Method · 0.76
newPersonIdent
Method · 0.76