|
@@ -17,6 +17,21 @@ export function formatTime(date) {
|
|
|
return year + "/" + month + "/" + day
|
|
|
}
|
|
|
|
|
|
+export function formatTimeForSeconds(date) {
|
|
|
+ if (date.length <= 11) {
|
|
|
+ date = date * 1000
|
|
|
+ }
|
|
|
+ var date = new Date(date)
|
|
|
+ const year = date.getFullYear()
|
|
|
+ const month = date.getMonth() + 1
|
|
|
+ const day = date.getDate()
|
|
|
+
|
|
|
+ const hour = date.getHours()
|
|
|
+ const minute = date.getMinutes()
|
|
|
+
|
|
|
+ return year + "/" + month + "/" + day + " " + hour + ":" + minute
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
export function formatValidityTime(date) {
|
|
|
if (date.toString().length <= 11) {
|