I'm finishing a database driver.
One of the last types to unmarshal from the system is date time with
timezone. The zone is given in signed minutes offset from UTC.

It seems like the driver could create unique FixedZone locations and cache
them for each unique offset. But then the name would be incorrect and it
seems like that is what the time package already does.

Is there a method to lookup existing zone *Location from just a minutes

I suppose all else failing I can load the time zone offsets from the std
lib source and create a reverse lookup, and failing that create a fixed
timezone. I'm aware time offsets will have multiple codes, so it isn't a
one to one, but...
Maybe the failing is more with the database server.

I'd appreciate any suggestions.

You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
postedMay 1, '14 at 4:38a
activeMay 1, '14 at 4:38a

1 user in discussion

Daniel Theophanes: 1 post



site design / logo © 2021 Grokbase