We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdae59f commit e63a3ebCopy full SHA for e63a3eb
1 file changed
bootstrap/services/database/time.go
@@ -72,3 +72,8 @@ func StrToTime(str string) Time {
72
}
73
return Time{tm}
74
75
+
76
+// UnixToTime 时间戳转时间类型
77
+func UnixToTime(unix int64) Time {
78
+ return Time{time.Unix(unix, 0)}
79
+}
0 commit comments