From: Jingjing Duan Date: 2012-08-04T09:45:39+09:00 Subject: %Q of DateTime#strftime not working The rdoc says the following about the %Q directive: %Q - Number of microseconds since 1970-01-01 00:00:00 UTC. However, it seems to return the number of milliseconds instead. 1.9.3p194 :067 > now = DateTime.now => # 1.9.3p194 :068 > now.strftime("%s") => "1344040990" 1.9.3p194 :069 > now.strftime("%Q") => "1344040990721" 1.9.3p194 :070 > now.to_time.usec => 721033 As you can tell, the 'now' object does have microsecond accuracy. So why doesn't %Q work as advertised? -- Posted via http://www.ruby-forum.com/.