From: Uddeshya Singh Date: Fri, 7 May 2021 07:48:05 +0000 (+0530) Subject: doc/go1.17: document time changes for Go1.17 X-Git-Tag: go1.17beta1~52 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1c6a2ea2ea4b04416f7344ee5effe81816c7200b;p=gostls13.git doc/go1.17: document time changes for Go1.17 Documents the newly implemented changes of - Time.IsDST() method - Addition of Time.UnixMilli, Time.UnixMicro and to-Time helpers UnixMicro, UnixMilli methods - Addition of comma "," support as separator for fraction seconds For #44513 Fixes #46026 Change-Id: Ib8d3449d3b061f013112d33362b50e68ad6ddffa Reviewed-on: https://go-review.googlesource.com/c/go/+/317913 Reviewed-by: Dmitri Shuralyov Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go1.17.html b/doc/go1.17.html index 6ddef3d47e..b287d41309 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -689,15 +689,26 @@ Do not send CLs removing the interior tags from such phrases.

- TODO: https://golang.org/cl/264077: add Time.IsDST() to check if its Location is in Daylight Savings Time + The new Time.IsDST method can be used to check whether the time + is in Daylight Savings Time in its configured location.

- TODO: https://golang.org/cl/293349: add Time.Unix{Milli,Micro} and to-Time helpers UnixMicro, UnixMilli + The new Time.UnixMilli and + Time.UnixMicro methods return the number of milliseconds and + microseconds elapsed since January 1, 1970 UTC respectively.
+ The new UnixMilli and UnixMicro functions return local Time corresponding to given + Unix time.

- TODO: https://golang.org/cl/300996: support "," as separator for fractional seconds + The package now accepts comma "," as a separator for fractional seconds when parsing and formatting time. + The following time formats are now accepted: +

    +
  • 2006-01-02 14:06:03,999999999 -0700 MST
  • +
  • Mon Jan _2 14:06:03,120007 2006
  • +
  • Mon Jan 2 14:06:03,120007 2006
  • +