mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 12:13:09 +02:00
14 lines
335 B
Text
14 lines
335 B
Text
module.exports = (date) ->
|
|
if typeof date == \string then date = new Date date
|
|
|
|
text =
|
|
date.get-full-year! + \年 +
|
|
date.get-month! + 1 + \月 +
|
|
date.get-date! + \日 +
|
|
' ' +
|
|
date.get-hours! + \時 +
|
|
date.get-minutes! + \分 +
|
|
' ' +
|
|
"(#{[\日 \月 \火 \水 \木 \金 \土][date.get-day!]})"
|
|
|
|
return text
|