ruby-changes:58590
From: Kazuhiro <ko1@a...>
Date: Wed, 6 Nov 2019 09:47:56 +0900 (JST)
Subject: [ruby-changes:58590] 5251d18982 (master): Time#strftime does not support `%Q`
https://git.ruby-lang.org/ruby.git/commit/?id=5251d18982 From 5251d189829abc405a5f0422b8874bab7cd79c46 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Wed, 6 Nov 2019 09:45:27 +0900 Subject: Time#strftime does not support `%Q` ``` % ruby -r date -e 't=Time.utc(2001,2,3,4,5,6,7);p t; p [t, t.to_date, t.to_datetime].map{|d|d.strftime("%Q")}' 2001-02-03 04:05:06.000007 UTC ["%Q", "981158400000", "981173106000"] ``` diff --git a/lib/time.rb b/lib/time.rb index 81c0ebd..b1d7553 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -410,7 +410,6 @@ class Time https://github.com/ruby/ruby/blob/trunk/lib/time.rb#L410 # %N :: Fractional seconds digits # %p :: Meridian indicator ("AM" or "PM") # %P :: Meridian indicator ("am" or "pm") - # %Q :: Number of milliseconds since 1970-01-01 00:00:00 UTC. # %r :: time, 12-hour (same as %I:%M:%S %p) # %R :: time, 24-hour (%H:%M) # %s :: Number of seconds since 1970-01-01 00:00:00 UTC. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/