Exemple #1
0
 def same(utc1, tzid1, utc2, tzid2):
     # Always match if any one of them is 'floating'
     if Timezone.is_float(utc1, tzid1) or Timezone.is_float(utc2, tzid2):
         return True
     elif utc1 != utc2:
         return False
     else:
         return utc1 or stringutils.compareStringsSafe(tzid1, tzid2)
Exemple #2
0
 def same(utc1, tzid1, utc2, tzid2):
     # Always match if any one of them is 'floating'
     if Timezone.is_float(utc1, tzid1) or Timezone.is_float(utc2, tzid2):
         return True
     elif utc1 != utc2:
         return False
     else:
         return utc1 or stringutils.compareStringsSafe(tzid1, tzid2)
Exemple #3
0
 def equals(self, comp):
     # Always match if any one of them is 'floating'
     if self.floating() or comp.floating():
         return True
     elif self.mUTC != comp.mUTC:
         return False
     else:
         return self.mUTC or stringutils.compareStringsSafe(self.mTimezone, comp.mTimezone)
Exemple #4
0
 def equals(self, comp):
     # Always match if any one of them is 'floating'
     if self.floating() or comp.floating():
         return True
     elif self.mUTC != comp.mUTC:
         return False
     else:
         return self.mUTC or stringutils.compareStringsSafe(
             self.mTimezone, comp.mTimezone)