Hacker News new | ask | show | jobs
by carl_dr 1300 days ago
That doesn't work unfortunately, you need the brackets - DateTime has to be on the left.
1 comments

ah, my bad.

This should work for 134:

`ruby -r date -e '0.upto(4e9){b=DateTime.new(0)+_1/86400r;puts b.strftime"%y-%m-%d %H:%M:%S"if(c=b.strftime"%y%m%d%H%M%S")==c.reverse}'`