mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
checks whether zone was given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8afd99d671
commit
9f0643ed57
2 changed files with 11 additions and 3 deletions
|
|
@ -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, ' ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue