Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package tstime
|
||||
|
||||
import "time"
|
||||
|
||||
// These are additional layouts for use in [time.Format] and [time.Parse].
|
||||
// For additional details, see [time.Layout].
|
||||
const (
|
||||
// time.RFC3339 = "2006-01-02T15:04:05Z07:00"
|
||||
DateTTimeMilliZ = "2006-01-02T15:04:05.000Z07:00" // RFC3339 with fixed milliseconds
|
||||
|
||||
// time.DateTime = "2006-01-02 15:04:05"
|
||||
DateSpTimeZ = time.DateTime + "Z07:00" // RFC3339 with space instead of 'T'
|
||||
DateSpTimeMilliZ = time.DateTime + ".999Z07:00"
|
||||
DateSpTimeNanoZ = time.DateTime + ".999999999Z07:00"
|
||||
|
||||
// ISO8601 basic format: without punctuation
|
||||
BasicDateTTime = "20060102T150405"
|
||||
BasicDateTTimeZ = "20060102T150405Z07:00"
|
||||
|
||||
// ISO8601 numeric format: removed in 2019
|
||||
NumericDateTime = "20060102150405"
|
||||
NumericDateTimeZ = "20060102150405Z07:00"
|
||||
)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package tstime
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Package mono provides fast monotonic time.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// This is a modified, simplified version of code from golang.org/x/time/rate.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package rate
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Package tstime defines Tailscale-specific time utilities.
|
||||
|
||||
Reference in new issue
Block a user