mirror of
https://github.com/vastxie/99AI.git
synced 2025-09-19 01:56:38 +08:00
9 lines
517 B
JavaScript
9 lines
517 B
JavaScript
|
|
/**
|
|
* 由 Fantastic-admin 提供技术支持
|
|
* Powered by Fantastic-admin
|
|
* https://fantastic-admin.github.io
|
|
*/
|
|
|
|
function n(a,s="YYYY-MM-DD hh:mm:ss"){const c=new Date(a).getTime(),t=new Date(c);let e=s.replace("YYYY",t.getFullYear().toString());return e=e.replace("MM",`0${t.getMonth()+1}`.slice(-2)),e=e.replace("DD",`0${t.getDate()}`.slice(-2)),e=e.replace("hh",`0${t.getHours()}`.slice(-2)),e=e.replace("mm",`0${t.getMinutes()}`.slice(-2)),e=e.replace("ss",`0${t.getSeconds()}`.slice(-2)),e}export{n as u};
|