- 136 名前:nobodyさん mailto:sage [2013/02/08(金) 15:56:48.82 ID:???]
- まともにleapsecs(うるう秒)を扱える言語の例 python の場合
ソース #!/usr/local/bin/python import time print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1341100823))) print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1341100824))) print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1341100825))) print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1341100826))) 実行結果 2012-07-01 08:59:59 2012-07-01 08:59:60 2012-07-01 09:00:00 2012-07-01 09:00:01
|

|