diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2022-06-15 13:06:10 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-08-09 14:33:24 +0000 |
| commit | 0981d9fff1fa5601a2b7833473955252425bd923 (patch) | |
| tree | 482dee8b5948c1af2daa6935fc6553435771e267 /api | |
| parent | 662a729ded9cd9ae70c079a0b1c3ca0a81f94c32 (diff) | |
| download | go-0981d9fff1fa5601a2b7833473955252425bd923.tar.xz | |
time: add DateTime, DateOnly, and TimeOnly
Add named constants for the 3rd, 4th, and 13th most popular formats.
Fixes #52746
Change-Id: I7ce92e44dcae18c089124f1d6f5bc2d6359d436c
Reviewed-on: https://go-review.googlesource.com/c/go/+/412495
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
Diffstat (limited to 'api')
| -rw-r--r-- | api/next/52746.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/next/52746.txt b/api/next/52746.txt new file mode 100644 index 0000000000..d6c3bd2749 --- /dev/null +++ b/api/next/52746.txt @@ -0,0 +1,6 @@ +pkg time, const DateOnly = "2006-01-02" #52746 +pkg time, const DateOnly ideal-string #52746 +pkg time, const DateTime = "2006-01-02 15:04:05" #52746 +pkg time, const DateTime ideal-string #52746 +pkg time, const TimeOnly = "15:04:05" #52746 +pkg time, const TimeOnly ideal-string #52746 |
