diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-27 20:58:05 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-27 20:58:05 +0000 |
commit | ea418dda412c454e5247c698ef2382f2b8a2a6ea (patch) | |
tree | 19c35a5ee146d4ce020a9898fc4d20ec7f770a40 /lib | |
parent | 1bf4a34eec846ab9aec7dafc92132044d9ee1620 (diff) | |
download | ruby-ea418dda412c454e5247c698ef2382f2b8a2a6ea.tar.gz |
* time.c: [DOC] Clarify %Y in strftime, which can accept any digits
and will output at least 4 digits as the year. Reported by Yury
Trofimenko [Bug #8941]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/time.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/time.rb b/lib/time.rb index 2225f68abb..d39c4f6515 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -417,7 +417,7 @@ class Time # %x :: Preferred representation for the date alone, no time # %X :: Preferred representation for the time alone, no date # %y :: Year without a century (00..99) - # %Y :: Year with century + # %Y :: Year which may include century, if provided # %z :: Time zone as hour offset from UTC (e.g. +0900) # %Z :: Time zone name # %% :: Literal "%" character |