summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-10-31 10:20:31 -0400
committerDave Henderson <dhenderson@gmail.com>2017-10-31 22:28:26 -0400
commiteef471af3bdaed233a0418454ed67d94a8b00424 (patch)
tree2db1cfcc75bac728b4bc77ca810e2071abf7f5ae /funcs
parent491dee1400808a101736b65781c8d3f01efbad40 (diff)
Adding time.ZoneOffset function
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'funcs')
-rw-r--r--funcs/time.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/funcs/time.go b/funcs/time.go
index 4515f4e8..c4e03deb 100644
--- a/funcs/time.go
+++ b/funcs/time.go
@@ -68,6 +68,11 @@ func (f *TimeFuncs) ZoneName() string {
return time.ZoneName()
}
+// ZoneOffset - return the local system's time zone's name
+func (f *TimeFuncs) ZoneOffset() int {
+ return time.ZoneOffset()
+}
+
// Parse -
func (f *TimeFuncs) Parse(layout, value string) (gotime.Time, error) {
return gotime.Parse(layout, value)