################################################################ # 現在日時を挿入するコマンドを追加 # 参考: https://github.com/dannyfritz/atom-date # 参考: https://github.com/JerrySievert/date-utils daysKanji = ['日', '月', '火', '水', '木', '金', '土'] pad = (str, length) -> str = String(str) str = '0' + str while(str.length < length) str dateOrTime = (kind) -> now = new Date() yyyy = now.getYear() + 1900 mm = pad(now.getM
![Atomに現在日時を挿入するコマンドを追加する - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/827bbb3f6bb7d25404009ea26687facb1167c6a8/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-1150d8b18a7c15795b701a55ae908f94.png%3Fixlib%3Drb-1.2.2%26w%3D1200%26mark%3Dhttps%253A%252F%252Fqiita-user-contents.imgix.net%252F~text%253Fixlib%253Drb-1.2.2%2526w%253D840%2526h%253D380%2526txt%253DAtom%2525E3%252581%2525AB%2525E7%25258F%2525BE%2525E5%25259C%2525A8%2525E6%252597%2525A5%2525E6%252599%252582%2525E3%252582%252592%2525E6%25258C%2525BF%2525E5%252585%2525A5%2525E3%252581%252599%2525E3%252582%25258B%2525E3%252582%2525B3%2525E3%252583%25259E%2525E3%252583%2525B3%2525E3%252583%252589%2525E3%252582%252592%2525E8%2525BF%2525BD%2525E5%25258A%2525A0%2525E3%252581%252599%2525E3%252582%25258B%2526txt-color%253D%252523333%2526txt-font%253DAvenir-Black%2526txt-size%253D54%2526txt-clip%253Dellipsis%2526txt-align%253Dcenter%25252Cmiddle%2526s%253D60475ddf23d75c9171c4446f540f4a3c%26mark-align%3Dcenter%252Cmiddle%26blend%3Dhttps%253A%252F%252Fqiita-user-contents.imgix.net%252F~text%253Fixlib%253Drb-1.2.2%2526w%253D840%2526h%253D500%2526txt%253D%252540toruot%2526txt-color%253D%252523333%2526txt-font%253DAvenir-Black%2526txt-size%253D45%2526txt-align%253Dright%25252Cbottom%2526s%253Da46aa17786a4ae0b2cadb59e5f23b177%26blend-align%3Dcenter%252Cmiddle%26blend-mode%3Dnormal%26s%3D4357c84073139df81b34c276565a8405)