def time_pack(x, seconds_in_hour=seconds_in_hour):
    """
	Create a (seconds, microseconds) pair from a `datetime.time` instance.
	"""
    return x.hour * seconds_in_hour + x.minute * 60 + x.second, x.microsecond
