#NEWLINE# def _write_time( self , w , t , prec ) : #NEWLINE# #INDENT# secs = ( ( ( ( t . hour * 60 ) * 60 ) + ( t . minute * 60 ) ) + t . second ) #NEWLINE# val = ( ( ( secs * ( 10 ** 7 ) ) + ( val . microsecond * 10 ) ) // ( 10 ** ( 7 - prec ) ) ) #NEWLINE# w . write ( struct . pack ( '<Q' , val ) [ : self . _precision_to_len [ prec ] ] )