summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-09-02 09:39:16 -0400
committerDave Henderson <dhenderson@gmail.com>2017-10-14 14:00:51 -0400
commitcbd225bc835ad0523012406893a0cd3843956191 (patch)
treef68c1a5e28fcc3a416c03de41e6400657c1bda28 /time
parentfa0aa0127cdadd6be21c02569a96376f233f00ec (diff)
Adding new time funcs
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'time')
-rw-r--r--time/time.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/time/time.go b/time/time.go
new file mode 100644
index 00000000..e1241d3f
--- /dev/null
+++ b/time/time.go
@@ -0,0 +1,11 @@
+package time
+
+import (
+ "time"
+)
+
+// ZoneName - a convenience function for determining the current timezone's name
+func ZoneName() string {
+ n, _ := time.Now().Zone()
+ return n
+}