diff options
Diffstat (limited to 'util/timestamp/timestamp.go')
-rw-r--r-- | util/timestamp/timestamp.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/util/timestamp/timestamp.go b/util/timestamp/timestamp.go new file mode 100644 index 00000000..4f587cb4 --- /dev/null +++ b/util/timestamp/timestamp.go @@ -0,0 +1,9 @@ +package timestamp + +import "time" + +type Timestamp int64 + +func (t Timestamp) Time() time.Time { + return time.Unix(int64(t), 0) +} |