@kyanny's blog

My thoughts, my life. Views/opinions are my own.

(5/75) Java Tutorial for Complete Beginners

while ループ。

水曜(木曜)のこの時間は NHK でロシア語とアラビア語の勉強の番組が立て続けにやってて面白そうだった。

Java とは関係ないけど Emacs Lisp で日付処理する関数の使い方を少し勉強した。あと unkillable-scratch.el を入れた。

(current-time)
(22923 11526 173652 0)

(decode-time)
(55 40 0 10 8 2017 4 nil 32400)

(current-time-string)
"Thu Aug 10 00:41:08 2017"

(format-time-string "%D" (current-time))
"08/10/17"

(decode-time (current-time))
(44 41 0 10 8 2017 4 nil 32400)

(format-time-string "%D" (decode-time))
"02/15/70"

(float-time (current-time))
1502293502.995365

1502293496.278128

(float-time (decode-time))
917549.0

(days-to-time 10)
(13 12032)

(current-time)
(22923 11808 99698 0)

(time-add (current-time) (days-to-time 10))
(22936 23853 762930 0)

(decode-time (time-add (current-time) (days-to-time 10)))
(7 46 0 20 8 2017 0 nil 32400)

(current-time-string)
"Thu Aug 10 00:52:31 2017"

(current-time-string (time-add (current-time) (days-to-time 10)))
"Sun Aug 20 00:53:10 2017"

Mac の Emacs で C-M-d (down-list) が効かないとき

OS が奪っているらしく、 System Preferences から解除することもできないので、

$ defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>'

してから再起動すればよい。

参考

apple.stackexchange.com

y0m0r.hateblo.jp

↑のブログから Dictionary.app を Emacs から引く - 刺身☆ブーメランのはてなダイアリー が参照されていた。七年前。