aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/mauve_time.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 16:09:08 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 16:09:08 +0100
commitf1608b8098d0302f7e5c0e7989c78fa310d7d424 (patch)
treef4e1a9a9a5f6c0873bc568c96a21fbade7170104 /lib/mauve/mauve_time.rb
parenta54a32084e9870af6f1ede97887c2332c21e812c (diff)
Removed MauveTime. Added more tests.
Diffstat (limited to 'lib/mauve/mauve_time.rb')
-rw-r--r--lib/mauve/mauve_time.rb38
1 files changed, 17 insertions, 21 deletions
diff --git a/lib/mauve/mauve_time.rb b/lib/mauve/mauve_time.rb
index e51cf6d..4435098 100644
--- a/lib/mauve/mauve_time.rb
+++ b/lib/mauve/mauve_time.rb
@@ -17,14 +17,14 @@ class Integer
end
class Date
- def to_mauvetime
- Mauve::MauveTime.parse(self.to_s)
+ def to_time
+ Time.parse(self.to_s)
end
end
class DateTime
- def to_mauvetime
- Mauve::MauveTime.parse(self.to_s)
+ def to_time
+ Time.parse(self.to_s)
end
def to_s_relative(*args)
@@ -42,10 +42,6 @@ class DateTime
end
class Time
- def to_mauvetime
- Mauve::MauveTime.at(self.to_i,self.usec)
- end
-
def in_x_hours(n, type="wallclock")
t = self.dup
#
@@ -204,16 +200,16 @@ class Time
end
-module Mauve
- class MauveTime < Time
-
- def to_s
- self.iso8601
- end
-
- def to_mauvetime
- self
- end
-
- end
-end
+#module Mauve
+# class Time < Time
+#
+# def to_s
+# self.iso8601
+# end
+#
+# def to_mauvetime
+# self
+# end
+#
+# end
+#end