aboutsummaryrefslogtreecommitdiffstats
path: root/bug/time.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-30 11:00:39 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-30 11:03:42 +0200
commit037f5bf50b2bb2b020620413d186b6acf47a0b61 (patch)
tree6639ac6f8c53bcc4a27660ea92faff46974e98b2 /bug/time.go
parentd450c7a883876e0f5356fb5cb54109a0a2a77dfd (diff)
downloadgit-bug-037f5bf50b2bb2b020620413d186b6acf47a0b61.tar.gz
timeline: various minor improvements
Diffstat (limited to 'bug/time.go')
-rw-r--r--bug/time.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/bug/time.go b/bug/time.go
new file mode 100644
index 00000000..a085e8e9
--- /dev/null
+++ b/bug/time.go
@@ -0,0 +1,9 @@
+package bug
+
+import "time"
+
+type Timestamp int64
+
+func (t Timestamp) Time() time.Time {
+ return time.Unix(int64(t), 0)
+}