MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Unix

Function Unix

pkg/util/timeutil/time.go:52–54  ·  view source on GitHub ↗

Unix wraps time.Unix ensuring that the result is in UTC instead of Local.

(sec, nsec int64)

Source from the content-addressed store, hash-verified

50
51// Unix wraps time.Unix ensuring that the result is in UTC instead of Local.
52func Unix(sec, nsec int64) time.Time {
53 return time.Unix(sec, nsec).UTC()
54}
55
56// SleepUntil sleeps until the given time. The current time is
57// refreshed every second in case there was a clock jump

Callers 13

PerformCastFunction · 0.92
SampleDatumFunction · 0.92
DecodeTimeAscendingFunction · 0.92
DecodeTimeDescendingFunction · 0.92
DecodeUntaggedTimeValueFunction · 0.92
ToTimeMethod · 0.92
parsing.goFile · 0.92
TimeMethod · 0.92
GoTimeMethod · 0.92
PhysicalTimeMethod · 0.92
ToTimeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…