def time2id(parts):
    """
    Combine a broken-up message identifier into a numeric one

    parts is a MessageID instance (or any 3-sequence); the return
    value is an integer.
    """
    ts, ms, seq = parts
    return ts * 1024000 + ms * 1024 + seq