]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/github.com/fsouza/go-dockerclient/external/github.com/docker/docker/pkg/archive/time_unsupported.go
e85aac05408086241bbf1a895b439edca4075458
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / fsouza / go-dockerclient / external / github.com / docker / docker / pkg / archive / time_unsupported.go
1 // +build !linux
2
3 package archive
4
5 import (
6 "syscall"
7 "time"
8 )
9
10 func timeToTimespec(time time.Time) (ts syscall.Timespec) {
11 nsec := int64(0)
12 if !time.IsZero() {
13 nsec = time.UnixNano()
14 }
15 return syscall.NsecToTimespec(nsec)
16 }