MCPcopy Create free account
hub / github.com/facebook/time / TimeToTimespec

Function TimeToTimespec

phc/unix/types.go:147–147  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

145func Socket(domain, typ, proto int) (fd int, err error) { return unix.Socket(domain, typ, proto) }
146func Syscall(a, b, c, d uintptr) (uintptr, uintptr, Errno) { return unix.Syscall(a, b, c, d) }
147func TimeToTimespec(t time.Time) (Timespec, error) { return unix.TimeToTimespec(t) }
148func Uname(s *Utsname) error { return unix.Uname(s) }
149func NsecToTimeval(nsec int64) Timeval { return unix.NsecToTimeval(nsec) }
150func SetsockoptTimeval(fd, level, opt int, tv *Timeval) error {

Callers 3

clockSetTimeFunction · 0.92
TimestampMethod · 0.92
TestTimeToTimespecFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestTimeToTimespecFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…