Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

changed the way intervals are created by #-

  • Loading branch information...
commit bef6dc8647083e3a7d97b24e5c4bd88c5b18e785 1 parent b78300d
Stefan Rusterholz authored

Showing 2 changed files with 19 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/chronos/datetime.rb
  2. +18 0 web/index.html
2  lib/chronos/datetime.rb
@@ -233,7 +233,7 @@ def -(other)
233 233 if other.respond_to?(:to_duration) then
234 234 self+(-other)
235 235 else
236   - Interval.between(self, self.class.import(other))
  236 + Interval.new(self, self.class.import(other))
237 237 end
238 238 end
239 239
18 web/index.html
... ... @@ -0,0 +1,18 @@
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3 +<html xmlns="http://www.w3.org/1999/xhtml">
  4 +<head>
  5 + <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6 + <title>Chronos</title>
  7 +</head>
  8 +<body>
  9 +<h1>Chronos</h1>
  10 +<p>Chronos is a library that lets you easily deal with various kinds of calculations
  11 +with dates, times, durations and intervals.</p>
  12 +<ul>
  13 + <li><a href="http://rubyforge.org/projects/chronos">Project</a></li>
  14 + <li><a href="http://github.com/apeiros/chronos">Git repository</a></li>
  15 + <li><a href="http://chronos.rubyforge.org/docs/">API documentation</a></li>
  16 +</ul>
  17 +</body>
  18 +</html>

0 comments on commit bef6dc8

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