MCPcopy Index your code
hub / github.com/coder/coder / Now

Function Now

coderd/database/dbtime/dbtime.go:6–8  ·  view source on GitHub ↗

Now returns a standardized timezone used for database resources.

()

Source from the content-addressed store, hash-verified

4
5// Now returns a standardized timezone used for database resources.
6func Now() time.Time {
7 return Time(time.Now().UTC())
8}
9
10// Time returns a time compatible with Postgres. Postgres only stores dates with
11// microsecond precision.

Calls 1

TimeFunction · 0.70