예제 #1
0
파일: date.py 프로젝트: zieglerm/TACTIC
    def get_diff_hours(self, date):
        '''calculates the difference in days between 2 dates'''
        my_utc = self.get_utc()
        utc = date.get_utc()

        diff = utc - my_utc
        diff = int(diff / (60 * 60))
        return diff
예제 #2
0
파일: date.py 프로젝트: blezek/TACTIC
    def get_diff_hours(my, date):
        '''calculates the difference in days between 2 dates'''
        my_utc = my.get_utc()
        utc = date.get_utc()

        diff = utc - my_utc
        diff = int(diff/(60*60))
        return diff
예제 #3
0
파일: date.py 프로젝트: zieglerm/TACTIC
    def get_diff_days(self, date):
        '''calculates the difference in days between 2 dates'''
        my_utc = self.get_utc()
        utc = date.get_utc()

        diff = utc - my_utc
        # don't int this as it rounds up too much
        diff = diff / (24 * 60 * 60)
        return diff
예제 #4
0
파일: date.py 프로젝트: blezek/TACTIC
    def get_diff_days(my, date):
        '''calculates the difference in days between 2 dates'''
        my_utc = my.get_utc()
        utc = date.get_utc()

        diff = utc - my_utc
        # don't int this as it rounds up too much
        diff = diff/(24*60*60)
        return diff