def read_element_date(stream, size):
 if (size != 8):
  raise SizeError(size)
 nanoseconds = unpack('>q', _read(stream, 8))[0]
 return (datetime(2001, 1, 1, 0, 0, 0, 0, None) + timedelta(microseconds=(nanoseconds // 1000)))

def read_element_date ( stream , size ) : if ( size != 8 ) : raise SizeError ( size ) nanoseconds = unpack ( '>q' , _read ( stream , 8 ) ) [ 0 ] return ( datetime ( 2001 , 1 , 1 , 0 , 0 , 0 , 0 , None ) + timedelta ( microseconds = ( nanoseconds // 1000 ) ) )
read the element data of type :data:date .