diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-07 00:33:53 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-07 00:33:53 +0000 |
| commit | 73ec17a4ec2a9c16fd47e077b9f13ff60a93f427 (patch) | |
| tree | 5a4816fec9d799047204af30e23e6656f1be4fe1 /lib/date/format.rb | |
| parent | 311fc0d61a616e70ffff3c4d22a343c862584d29 (diff) | |
| download | ruby-73ec17a4ec2a9c16fd47e077b9f13ff60a93f427.tar.gz ruby-73ec17a4ec2a9c16fd47e077b9f13ff60a93f427.tar.xz ruby-73ec17a4ec2a9c16fd47e077b9f13ff60a93f427.zip | |
updated based on date2 4.0.1.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date/format.rb')
| -rw-r--r-- | lib/date/format.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/date/format.rb b/lib/date/format.rb index 011998294..ca890cf8f 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 |
