Searched refs:epoch_diff (Results 1 – 3 of 3) sorted by relevance
/external/fonttools/Lib/fontTools/misc/ |
D | timeTools.py | 11 epoch_diff = calendar.timegm((1904, 1, 1, 0, 0, 0, 0, 0, 0)) variable 45 return asctime(time.gmtime(max(0, value + epoch_diff))) 48 return calendar.timegm(time.strptime(value)) - epoch_diff 54 return int(source_date_epoch) - epoch_diff 55 return int(time.time() - epoch_diff) 58 return int(value - epoch_diff)
|
/external/fonttools/Tests/misc/ |
D | timeTools_test.py | 3 from fontTools.misc.timeTools import asctime, timestampNow, epoch_diff 16 assert timestampNow() + epoch_diff == 150687315 24 assert timestampNow() + epoch_diff != 150687315
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _h_e_a_d.py | 6 from fontTools.misc.timeTools import epoch_diff as mac_epoch_diff # For backward compat
|