YUKI Hiroshi
null+****@clear*****
Fri May 29 17:02:21 JST 2015
YUKI Hiroshi 2015-05-29 17:02:21 +0900 (Fri, 29 May 2015) New Revision: 52de6324c248ddf1706e8fc9c2ecadecd64876dc https://github.com/droonga/grn2drn/commit/52de6324c248ddf1706e8fc9c2ecadecd64876dc Message: Format datetime with microseconds Modified files: lib/grn2drn/command-converter.rb Modified: lib/grn2drn/command-converter.rb (+3 -1) =================================================================== --- lib/grn2drn/command-converter.rb 2014-09-29 17:05:12 +0900 (1f612e9) +++ lib/grn2drn/command-converter.rb 2015-05-29 17:02:21 +0900 (957dab3) @@ -86,8 +86,10 @@ module Grn2Drn Digest::SHA1.hexdigest("#{now_msec}:#{random_string}") end + MICRO_SECONDS_DECIMAL_PLACE = 6 + def format_date(time) - time.iso8601 + time.utc.iso8601(MICRO_SECONDS_DECIMAL_PLACE) end def stringify_keys(hash) -------------- next part -------------- HTML����������������������������...Download