]> Cypherpunks.ru repositories - gostls13.git/commit
time: add DateTime, DateOnly, and TimeOnly
authorJoe Tsai <joetsai@digital-static.net>
Wed, 15 Jun 2022 20:06:10 +0000 (13:06 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 9 Aug 2022 14:33:24 +0000 (14:33 +0000)
commit0981d9fff1fa5601a2b7833473955252425bd923
tree482dee8b5948c1af2daa6935fc6553435771e267
parent662a729ded9cd9ae70c079a0b1c3ca0a81f94c32
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>
api/next/52746.txt [new file with mode: 0644]
src/time/format.go
src/time/format_test.go