summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-07 00:33:53 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-07 00:33:53 +0000
commit0897ca53d8fdbb0b3e7995e0de6fc578b8d0e228 (patch)
tree5a4816fec9d799047204af30e23e6656f1be4fe1 /lib
parent33af906dfd4c1f75a121f4467ac97104d22979c1 (diff)
updated based on date2 4.0.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/date/format.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/date/format.rb b/lib/date/format.rb
index 0119982..ca890cf 100644
--- a/lib/date/format.rb
+++ b/lib/date/format.rb
@@ -1,5 +1,5 @@
-# format.rb: Written by Tadayoshi Funaba 1999-2006
-# $Id: format.rb,v 2.29 2006-12-30 21:43:41+09 tadf Exp $
+# format.rb: Written by Tadayoshi Funaba 1999-2007
+# $Id: format.rb,v 2.30 2007-01-07 09:16:24+09 tadf Exp $
require 'rational'
@@ -1078,6 +1078,8 @@ class DateTime < Date
super() + iso8601_timediv(n)
end
+ def rfc3339(n=0) iso8601(n) end
+
def jisx0301(n=0)
super() + iso8601_timediv(n)
end