diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-15 07:18:14 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-15 07:18:14 +0000 |
| commit | d3f47792f27c35574d6203879b7b0ad445afd686 (patch) | |
| tree | 5f84c69ec0bbbd3dfc59c8cb8b11bcd661577dcb /lib | |
| parent | 68eb5ea1efb75e449f289180c9a867eabe33d101 (diff) | |
| download | ruby-d3f47792f27c35574d6203879b7b0ad445afd686.tar.gz ruby-d3f47792f27c35574d6203879b7b0ad445afd686.tar.xz ruby-d3f47792f27c35574d6203879b7b0ad445afd686.zip | |
rdoc update.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/time.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/time.rb b/lib/time.rb index d1f6ba804..53e6697e7 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -214,11 +214,11 @@ class Time # # # Suppose it is "Thu Nov 29 14:33:20 GMT 2001" now and # # your timezone is GMT: - # now = - # Time.parse("16:30") #=> 2001-11-29 16:30:00 +0900 - # Time.parse("7/23") #=> 2001-07-23 00:00:00 +0900 - # Time.parse("Aug 31") #=> 2001-08-31 00:00:00 +0900 - # Time.parse("Aug 2000") #=> 2000-08-01 00:00:00 +0900 + # now = Time.parse("Thu Nov 29 14:33:20 GMT 2001") + # Time.parse("16:30", now) #=> 2001-11-29 16:30:00 +0900 + # Time.parse("7/23", now) #=> 2001-07-23 00:00:00 +0900 + # Time.parse("Aug 31", now) #=> 2001-08-31 00:00:00 +0900 + # Time.parse("Aug 2000", now) #=> 2000-08-01 00:00:00 +0900 # # Since there are numerous conflicts among locally defined timezone # abbreviations all over the world, this method is not made to |
