Skip to content

time: Minor documentation correction for pkg/time/#Time.Format #11190

@harikb

Description

@harikb

The documentation should mention that the example for http://golang.org/pkg/time/#Time.Format prints the same value for t.Format() and t.UTC().Format(). Reader may assume Format() always prints UTC. I think it behaves that way only because play.golang.org server runs in UTC. May be you should do one of

  1. set play.golang.org to a different timezone because UTC is so special (for the rest of the world)
  2. or document this near / inside the example.
  3. or change the example to use a different timezone instead of time.Local

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions