From ea418dda412c454e5247c698ef2382f2b8a2a6ea Mon Sep 17 00:00:00 2001 From: zzak Date: Sun, 27 Jul 2014 20:58:05 +0000 Subject: * 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 --- lib/time.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/time.rb') 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 -- cgit v1.2.3