aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/mauve_time.rb
diff options
context:
space:
mode:
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