gitee.com/quant1x/gox@v1.21.2/api/filestat_nix.go (about)

     1  //go:build !windows
     2  
     3  package api
     4  
     5  import (
     6  	"syscall"
     7  	"time"
     8  )
     9  
    10  func timespecToTime(ts syscall.Timespec) time.Time {
    11  	return time.Unix(int64(ts.Sec), int64(ts.Nsec))
    12  }