diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-01 01:37:12 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-01 01:37:12 +0000 |
commit | ba3da085961e5ffcdab405416518abef0a1d13ed (patch) | |
tree | 83b971d296f9948d21938f739c91c1f0758269aa /lib/time.rb | |
parent | 0fc1870f237f916c8b7b7cca2e7ac430cf5a4ee7 (diff) |
[DOC] Add %Q and %+ to strptime [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/time.rb')
-rw-r--r-- | lib/time.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/time.rb b/lib/time.rb index 0d740b25b0..0bfd9a9a45 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -413,6 +413,7 @@ class Time # %9N :: nanosecond (9 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. @@ -434,6 +435,7 @@ class Time # %z :: Time zone as hour offset from UTC (e.g. +0900) # %Z :: Time zone name # %% :: Literal "%" character + # %+ :: date(1) (%a %b %e %H:%M:%S %Z %Y) def strptime(date, format, now=self.now) d = Date._strptime(date, format) |