mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
__FILE__,__LINE__
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@62 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3293a425af
commit
de0e5e35ae
17 changed files with 144 additions and 60 deletions
|
@ -13,8 +13,8 @@ module ParseDate
|
|||
if date.sub!(/\s+(\d+:\d+(:\d+)?)/, ' ')
|
||||
time = $1
|
||||
end
|
||||
if date =~ /19(\d\d)/
|
||||
year = Integer($1)
|
||||
if date =~ /(19|20)(\d\d)/
|
||||
year = Integer($2)
|
||||
end
|
||||
if date.sub!(/\s*(\d+)\s+(#{MONTHPAT})\S*\s+/i, ' ')
|
||||
dayofmonth = $1.to_i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue