From c235d89d36500e58e3bcadda94e9cab06023dd55 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 24 Feb 2019 23:05:03 +0100 Subject: commands: show the last modification time in "user" --- util/timestamp/timestamp.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 util/timestamp/timestamp.go (limited to 'util/timestamp/timestamp.go') diff --git a/util/timestamp/timestamp.go b/util/timestamp/timestamp.go new file mode 100644 index 000000000..4f587cb46 --- /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) +} -- cgit v1.2.3