Skip to content
Browse files

changed the way intervals are created by #-

  • Loading branch information...
1 parent b78300d commit bef6dc8647083e3a7d97b24e5c4bd88c5b18e785 @apeiros committed Aug 24, 2008
Showing with 19 additions and 1 deletion.
  1. +1 −1 lib/chronos/datetime.rb
  2. +18 −0 web/index.html
View
2 lib/chronos/datetime.rb
@@ -233,7 +233,7 @@ def -(other)
if other.respond_to?(:to_duration) then
self+(-other)
else
- Interval.between(self, self.class.import(other))
+ Interval.new(self, self.class.import(other))
end
end
View
18 web/index.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>Chronos</title>
+</head>
+<body>
+<h1>Chronos</h1>
+<p>Chronos is a library that lets you easily deal with various kinds of calculations
+with dates, times, durations and intervals.</p>
+<ul>
+ <li><a href="http://rubyforge.org/projects/chronos">Project</a></li>
+ <li><a href="http://github.com/apeiros/chronos">Git repository</a></li>
+ <li><a href="http://chronos.rubyforge.org/docs/">API documentation</a></li>
+</ul>
+</body>
+</html>

0 comments on commit bef6dc8

Please sign in to comment.
Something went wrong with that request. Please try again.