Skip to content

time: second precision timezone format not documented #52516

@alicebob

Description

@alicebob

go doc time says:

    Numeric time zone offsets format as follows:

        "-0700"  ±hhmm
        "-07:00" ±hh:mm
        "-07"    ±hh

However, timezones with second precision ("-07:00:00" and "-070000") are also supported: https://github.com/golang/go/blob/master/src/time/format.go#L151

Could these be added to the documentation? Took me a while to figure out why my pre-1900 date with LMT timezone parsed correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions