aboutsummaryrefslogtreecommitdiff
path: root/utils/date.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/date.go')
-rw-r--r--utils/date.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/date.go b/utils/date.go
new file mode 100644
index 0000000..3a6197d
--- /dev/null
+++ b/utils/date.go
@@ -0,0 +1,7 @@
+package utils
+
+import "time"
+
+func FormatDate(ts int64) string {
+ return time.Unix(ts, 0).Format("15:04 02.01.2006")
+}