mirror of
https://github.com/golang/go.git
synced 2025-05-07 16:43:03 +00:00
Empty time value time.Time{} leaves the corresponding time of the file unchanged. Fixes #32558 Change-Id: I1aff42f30668ff505ecec2e9509d8f2b8e4b1b6a Reviewed-on: https://go-review.googlesource.com/c/go/+/219638 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
14 lines
454 B
Go
14 lines
454 B
Go
// Copyright 2020 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package unix
|
|
|
|
const (
|
|
// UTIME_OMIT is the sentinel value to indicate that a time value should not
|
|
// be changed. It is useful for example to indicate for example with UtimesNano
|
|
// to avoid changing AccessTime or ModifiedTime.
|
|
// Its value must match syscall/fs_js.go
|
|
UTIME_OMIT = -0x2
|
|
)
|