Commit Graph

8 Commits

Author SHA1 Message Date
Heewa Barfchin
7bb19bef64 Add ToTimeInDefaultLocation/E
Go's time parsing uses UTC when the format doesn't have a tiemzone, and
has even weirder behavior when it has a zone name but no numeric offset.
A caller to `cast.ToTime` won't know if the returned time was explicitly
in UTC, or defaulted there, so the caller cannot fix it. These new
functions allow a user to supply a different timezone to default to,
with nil using the local zone.
2016-03-16 14:25:51 -04:00
Matt Keller
0eed3d1b35 Add a ToInt64() and necessary plumbing 2016-03-14 20:19:19 +01:00
jackspirou
7ed57e5c41 adding ToStringMapStringSlice method 2015-08-03 12:36:12 -04:00
bep
2c4fdb5416 Add ToIntSlice 2015-02-24 12:08:11 -05:00
Chance Zibolski
3cc9db95ac Add ToDuration 2015-02-24 12:07:25 -05:00
bep
bbe2d4b35d Add ToStringMapBool
ToStringMapBool is useful for a map of flags in a configuration file.
2014-11-06 11:32:02 +01:00
spf13
99f1223ff6 Adding ToSlice 2014-04-26 16:56:25 -06:00
spf13
6796452c69 initial commit of library & tests 2014-04-05 01:21:52 -04:00