stat_atim.go 414 B

123456789101112131415161718192021
  1. // Copyright 2012 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build linux dragonfly openbsd solaris
  5. package tar
  6. import (
  7. "syscall"
  8. "time"
  9. )
  10. func statAtime(st *syscall.Stat_t) time.Time {
  11. return time.Unix(st.Atim.Unix())
  12. }
  13. func statCtime(st *syscall.Stat_t) time.Time {
  14. return time.Unix(st.Ctim.Unix())
  15. }