diff options
Diffstat (limited to 'bug/time.go')
-rw-r--r-- | bug/time.go | 9 |
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) +} |