lib/hijri/gregorian.rb in hijri-0.1.0 vs lib/hijri/gregorian.rb in hijri-0.2.0
- old
+ new
@@ -23,6 +23,12 @@
class DateTime
def to_hijri
Hijri::DateTime.new *Hijri::Converter.greo_to_hijri(self)
end
+
+ if RUBY_VERSION < '1.8.8'
+ alias :minute :min
+ alias :second :sec
+ end
+
end
\ No newline at end of file