2014-08-05から1日間の記事一覧

jqplotで日付横軸に縦線(基本はUNIXTIME入力)

jqplotで日付横軸に縦線(基本はUNIXTIME入力). https://groups.google.com/forum/#!topic/jqplot-users/xfBTrKYBDS8 を参考に.

ruby一行野郎で日付の差分をもとめる

データ tmp.csv 2007-1-1,-,1 2007-1-2,-,1 2007-1-3,-,1 2007-1-5,-,1 2007-1-6,-,1 2007-1-12,-,1 cat tmp.csv | ruby -r Date -F"," -alne 'BEGIN{str1=Date.parse("2007-11-1")}; puts str1.to_s+","+$F[1]+","+(str1-Date.parse($F[0])).to_i.to_s; str…