]> Cypherpunks repositories - gostls13.git/commit
time: add space padding layout strings(using underscore) for not only day but others
authorHanjun Kim <hallazzang@gmail.com>
Mon, 20 Nov 2017 05:23:06 +0000 (14:23 +0900)
committerRob Pike <r@golang.org>
Wed, 13 Dec 2017 02:42:34 +0000 (02:42 +0000)
commit8776be153540cf450eafd847cf8efde0a01774dc
treed527333959dce291c183b86b3d23aa5f93e1896e
parent1206e974a1a6f1132c6ea5d746763a841d2d293a
time: add space padding layout strings(using underscore) for not only day but others

As mentioned in #22802, only day component of layout string has space
padding(represented by one underscore before its placeholder). This
commit expands the rule for month, hour, minute and second.

Updates #22802 (maybe fixes it)

Change-Id: I886998380489862ab9a324a6774f2e4cf7124122
Reviewed-on: https://go-review.googlesource.com/78735
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/time/format.go
src/time/format_test.go