diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 23:05:03 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:52:54 +0100 |
commit | c235d89d36500e58e3bcadda94e9cab06023dd55 (patch) | |
tree | c2ee84316886cca3e439dbc12f64d6a06ddd7c18 /util/timestamp | |
parent | 46beb4b886761ff69abe2ce45c2498a4fafe50d9 (diff) | |
download | git-bug-c235d89d36500e58e3bcadda94e9cab06023dd55.tar.gz |
commands: show the last modification time in "user"
Diffstat (limited to 'util/timestamp')
-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) +} |