You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
658 B
14 lines
658 B
- var yearStr = moment.utc(new Date(parseInt(timestampHuman) * 1000)).format("Y");
|
|
- var nowYearStr = moment.utc(new Date()).format("Y");
|
|
|
|
- var dateStr = moment.utc(new Date(parseInt(timestampHuman) * 1000)).format("Y-M-D");
|
|
- var nowDateStr = moment.utc(new Date()).format("Y-M-D");
|
|
|
|
if (dateStr == nowDateStr)
|
|
else
|
|
span #{moment.utc(new Date(parseInt(timestampHuman) * 1000)).format("M/D")}
|
|
if (yearStr != nowYearStr)
|
|
span , #{yearStr}
|
|
|
|
span
|
|
span.border-dotted(title=`${moment.utc(new Date(parseInt(timestampHuman) * 1000)).format("Y-MM-DD HH:mm:ss")}`, data-toggle="tooltip") #{moment.utc(new Date(parseInt(timestampHuman) * 1000)).format("HH:mm")}
|