def PyTmStoHMSX(secs):
    """
    Convert seconds to hours-minutes-seconds-milliseconds
    
    Parameters
    ----------
    secs: float, time in seconds

    Returns
    -------
    list, [hours as int, minutes as int, seconds as int, milliseconds as float]
    """

    h, secs = divmod(secs, 3600)
    m, secs = divmod(secs, 60)
    s, x = divmod(secs, 1)
    return [int(h), int(m), int(s), x]