def TicksToTuple(l):
    """
	Convert 64-bit bluray ticks into clock time as a 4-tuple of (hours, minutes, seconds, milliseconds)
	There is a conversion constant of 90000 that I am unable to find good documentation for.
	That said, the resulting times match what other programs tell me so it must be legit.
	"""
    total = l / 45000 / 2
    ms = int((total - int(total)) * 1000)
    total = int(total)
    s = total % 60
    total = int(total / 60)
    m = total % 60
    total = int(total / 60)
    h = total
    return h, m, s, ms
