def timestampUUID60(value):
 if (not isinstance(value, (float, int, long))):
  raise TypeError('an integer or float is required')
 if (value < 0):
  raise ValueError('value have to be a positive or nul integer')
 try:
  return (UUID60_TIMESTAMP_T0 + timedelta(microseconds=(value / 10)))
 except OverflowError:
  raise ValueError((_('timestampUUID60() overflow (value=%s)') % value))

def timestampUUID60 ( value ) : if ( not isinstance ( value , ( float , int , long ) ) ) : raise TypeError ( 'an integer or float is required' ) if ( value < 0 ) : raise ValueError ( 'value have to be a positive or nul integer' ) try : return ( UUID60_TIMESTAMP_T0 + timedelta ( microseconds = ( value / 10 ) ) ) except OverflowError : raise ValueError ( ( _ ( 'timestampUUID60() overflow (value=%s)' ) % value ) )
convert uuid 60-bit timestamp to string .