mirror of
https://github.com/kennethreitz/maya.git
synced 2026-06-05 14:50:19 +00:00
Merge pull request #32 from timofurrer/cleanup/remove-substraction
Remove sub protocol
This commit is contained in:
@@ -50,10 +50,6 @@ class MayaDT(object):
|
||||
"""Return's the datetime's format"""
|
||||
return format(self.datetime(), *args, **kwargs)
|
||||
|
||||
@validate_type_mayadt
|
||||
def __sub__(self, maya_dt):
|
||||
return MayaDT(self._epoch - maya_dt._epoch)
|
||||
|
||||
@validate_type_mayadt
|
||||
def __eq__(self, maya_dt):
|
||||
return self._epoch == maya_dt._epoch
|
||||
|
||||
Reference in New Issue
Block a user