1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 11:15:54 +02:00
This commit is contained in:
syuilo
2017-02-18 10:52:51 +09:00
parent 10d2530a2b
commit 6f6723e1c2
2 changed files with 13 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
module.exports = date => {
if (typeof date == 'string') date = new Date(date);
return (
date.getFullYear() + '年' +
date.getMonth() + 1 + '月' +
date.getDate() + '日' +
' ' +
date.getHours() + '時' +
date.getMinutes() + '分' +
' ' +
`(${['日', '月', '火', '水', '木', '金', '土'][date.getDay()]})`
);
};