From f71b67f34f4dc5b075a0c9ab0f8e482be2fd7f9e Mon Sep 17 00:00:00 2001 From: Avery <5616307+genderquery@users.noreply.github.com> Date: Sun, 9 Jun 2019 20:03:34 -0700 Subject: [PATCH] Correct typo "RFC339" to "RFC1123Z" (#837) * Correct typo "RFC339" to "RFC1123Z" Per discussion in PR #887, I added a link to the Go time package documentation that lists constants that can serve as further examples. --- content/en/functions/format.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/en/functions/format.md b/content/en/functions/format.md index fef4d85da..cdcec2fb3 100644 --- a/content/en/functions/format.md +++ b/content/en/functions/format.md @@ -87,9 +87,11 @@ date: 2017-03-03T14:15:59-06:00 `"Mon, 02 Jan 2006 15:04:05 MST"` (RFC1123) : **Returns**: `Fri, 03 Mar 2017 14:15:59 CST` -`"Mon, 02 Jan 2006 15:04:05 -0700"` (RFC339) +`"Mon, 02 Jan 2006 15:04:05 -0700"` (RFC1123Z) : **Returns**: `Fri, 03 Mar 2017 14:15:59 -0600` +More examples can be found in Go's [documentation for the time package][timeconst]. + ### Cardinal Numbers and Ordinal Abbreviations Spelled-out cardinal numbers (e.g. "one", "two", and "three") and ordinal abbreviations (i.e., with shorted suffixes like "1st", "2nd", and "3rd") are not currently supported: @@ -121,3 +123,4 @@ In conjunction with the [`dateFormat` function][dateFormat], you can also conver [gdex]: https://golang.org/pkg/time/#example_Time_Format [pagevars]: /variables/page/ [time]: https://golang.org/pkg/time/ +[timeconst]: https://golang.org/pkg/time/#ANSIC