def dehydrate_time(value):
if isinstance(value, Time):<EOL><INDENT>nanoseconds = int(value.ticks * <NUM_LIT>)<EOL><DEDENT>elif isinstance(value, time):<EOL><INDENT>nanoseconds = (<NUM_LIT> * value.hour + <NUM_LIT> * value.minute +<EOL><NUM_LIT> * value.second + <NUM_LIT:1000> * value.microsecond)<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if value.tzinfo:<EOL><INDENT>return Structure(b"<STR_LIT:T>", nanoseconds, value.tzinfo.utcoffset(value).seconds)<EOL><DEDENT>else:<EOL><INDENT>return Structure(b"<STR_LIT:t>", nanoseconds)<EOL><DEDENT>
Dehydrator for `time` values.

    :param value:
    :type value: Time
    :return: