Files
violin-home/dist/resets/date.86e91942.js
T
simple321vip bef1906747 test
2026-06-04 21:34:58 +08:00

2 lines
429 B
JavaScript

import{a as o}from"./number.46c8fb59.js";const r=(e,t)=>(e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),Math.floor((e.getMonth()+3)/3),e.getMilliseconds(),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),t),n=(e,t)=>(t||(t="yyyy-MM-dd hh:mm:ss"),r(new Date(e),t).toLocaleString()),l=e=>e.getFullYear()+"-"+o(e.getMonth()+1)+"-"+o(e.getDate());export{n as f,l as t};