1
0
Fork 0
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/trunk@7218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2004-11-06 02:24:35 +00:00
parent e527b8d876
commit 033709e5e4
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Sat Nov 6 11:18:59 2004 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date.rb (_parse): checks whether zone was given.
Fri Nov 5 19:07:16 2004 NARUSE, Yui <naruse@ruby-lang.org>
* ext/nkf: follow CVS Head of original nkf.

View file

@ -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, ' ')