Add tags

Add tags to the following comment
yugui さんのコード、どうも動かないと思ったら step のあとに count が繋げられるのは 1.9 からなのですね。 1.8.6 ではエラーになってしまいました。 一応 1.8.6 でも動作する版を作ってみました。 2013年12月31日 まで = 2014年1月1日としてますが、許される?
1
2
3
c=0
(Time.now..Time.gm(14)).step(86400){|d|d.day==13&&d.wday==5&&(c+=1)&&p(d)}
p c

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...