11 lines
353 B
JavaScript
11 lines
353 B
JavaScript
import { timestampFormatTime } from "../../../public/js/timestamp.js";
|
|
function getTime(){
|
|
var endTimestamp=new Date().getTime();
|
|
var startTimestamp=endTimestamp-1*24*3600*1000;
|
|
var startTime=timestampFormatTime(startTimestamp)
|
|
var endTime=timestampFormatTime(endTimestamp)
|
|
return {
|
|
startTime,endTime
|
|
}
|
|
}
|
|
export {getTime} |