2016-12-28 22:49:51 +00:00
|
|
|
module.exports = (date) ->
|
|
|
|
if typeof date == \string then date = new Date date
|
|
|
|
|
|
|
|
text =
|
|
|
|
date.get-full-year! + \年 +
|
2017-01-04 06:46:12 +00:00
|
|
|
date.get-month! + 1 + \月 +
|
2016-12-28 22:49:51 +00:00
|
|
|
date.get-date! + \日 +
|
|
|
|
' ' +
|
|
|
|
date.get-hours! + \時 +
|
|
|
|
date.get-minutes! + \分 +
|
|
|
|
' ' +
|
|
|
|
"(#{[\日 \月 \火 \水 \木 \金 \土][date.get-day!]})"
|
|
|
|
|
|
|
|
return text
|