diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-06 02:24:35 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-06 02:24:35 +0000 |
| commit | b116cb2565ba7c63306d79ec7a448337b893315b (patch) | |
| tree | cfd9e245723172c953fba34661216cd64633831c /lib | |
| parent | 3208156e156564d21fb1546ea5b4e0cede788577 (diff) | |
| download | ruby-b116cb2565ba7c63306d79ec7a448337b893315b.tar.gz ruby-b116cb2565ba7c63306d79ec7a448337b893315b.tar.xz ruby-b116cb2565ba7c63306d79ec7a448337b893315b.zip | |
checks whether zone was given.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7218 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, ' ') |
