1
0
mirror of https://github.com/golang/go synced 2024-11-17 12:34:46 -07:00
go/api/next/52746.txt
Joe Tsai 0981d9fff1 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>
2022-08-09 14:33:24 +00:00

7 lines
283 B
Plaintext

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