Skip to content

proposal: time: add Location.Zone method? #20091

@tnclong

Description

@tnclong

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.8

What operating system and processor architecture are you using (go env)?

mac OS

What did you do?

I found method Zone() on time.Time that get the zone name and zone offset second.
I want get the same things from time.Location.

Do you consider add a Zone() method to time.Location ?
It's also really better that we can get a method Offset(*time.Location) in time.Location

Thanks for your reply.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions