mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 16:57:54 +00:00
21 lines
885 B
Python
21 lines
885 B
Python
import DateObject
|
|
|
|
class TTDateObject(DateObject.DateObject):
|
|
|
|
def __init__(self, accountServerDate):
|
|
self.accountServerDate = accountServerDate
|
|
|
|
def getYear(self):
|
|
return self.accountServerDate.getYear()
|
|
|
|
def getMonth(self):
|
|
return self.accountServerDate.getMonth()
|
|
|
|
def getDay(self):
|
|
return self.accountServerDate.getDay()
|
|
|
|
def getDetailedAge(self, dobMonth, dobYear, dobDay = None, curMonth = None, curYear = None, curDay = None):
|
|
return DateObject.DateObject.getDetailedAge(self, dobMonth, dobYear, dobDay, curMonth=self.getMonth(), curYear=self.getYear(), curDay=self.getDay())
|
|
|
|
def getAge(self, dobMonth, dobYear, dobDay = None, curMonth = None, curYear = None, curDay = None):
|
|
return TTDateObject.getDetailedAge(self, dobMonth, dobYear, dobDay=dobDay, curMonth=curMonth, curYear=curYear, curDay=curDay)[0]
|