diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-06 02:32:45 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-06 02:32:45 +0000 |
| commit | 396b25572f74d043d82e2a870b11f755357e6858 (patch) | |
| tree | 92bf11b7e3149e507a9b0a45b4aa4c75c93e760f /lib | |
| parent | 637aad45de70ca38f237c702ae339a37a8f9460d (diff) | |
checks whether zone was given.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/date/format.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/date/format.rb b/lib/date/format.rb index e8e54e789..d821ecb04 100644 --- a/lib/date/format.rb +++ b/lib/date/format.rb @@ -1,5 +1,5 @@ # format.rb: Written by Tadayoshi Funaba 1999-2004 -# $Id: format.rb,v 2.13 2004-03-20 08:05:13+09 tadf Exp $ +# $Id: format.rb,v 2.14 2004-11-06 10:58:40+09 tadf Exp $ require 'rational' @@ -276,7 +276,9 @@ class Date end end - zone = $6 + if $6 + zone = $6 + end end # eu @@ -423,7 +425,9 @@ class Date if $4 sec_fraction = $4.to_i.to_r / (10**$4.size) end - zone = $5 + if $5 + zone = $5 + end end if str.sub!(/\b(bc\b|bce\b|b\.c\.|b\.c\.e\.)/ino, ' ') |
