From 037f5bf50b2bb2b020620413d186b6acf47a0b61 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 30 Sep 2018 11:00:39 +0200 Subject: timeline: various minor improvements --- bug/time.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 bug/time.go (limited to 'bug/time.go') 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) +} -- cgit