parameters: (string)
docstring: Decodes a date from a command line argument, returning msec since epoch".
  
    Args:
      string: See AssetSetCommand class comment for the allowable
        date formats.
  
    Returns:
      long, ms since epoch, or '' if the input is empty.
  
    Raises:
      argparse.ArgumentTypeError: if string does not conform to a legal
        date format.
docstring_summary: Decodes a date from a command line argument, returning msec since epoch".
docstring_tokens: Decodes a date from a command line argument returning msec since epoch .
function: def _decode_date(string):
    """Decodes a date from a command line argument, returning msec since epoch".
  
    Args:
      string: See AssetSetCommand class comment for the allowable
        date formats.
  
    Returns:
      long, ms since epoch, or '' if the input is empty.
  
    Raises:
      argparse.ArgumentTypeError: if string does not conform to a legal
        date format.
    """
    if not string:
      return ''
  
    try:
      return int(string)
    except ValueError:
      date_formats = ['%Y-%m-%d',
                      '%Y-%m-%dT%H:%M:%S',
                      '%Y-%m-%dT%H:%M:%S.%f']
      for date_format in date_formats:
        try:
          dt = datetime.datetime.strptime(string, date_format)
          return _timestamp_ms_for_datetime(dt)
        except ValueError:
          continue
    raise argparse.ArgumentTypeError(
        'Invalid value for property of type "date": "%s".' % string)
function_tokens: def _decode_date ( string ) : if not string : return '' try : return int ( string ) except ValueError : date_formats = [ '%Y-%m-%d' , '%Y-%m-%dT%H:%M:%S' , '%Y-%m-%dT%H:%M:%S.%f' ] for date_format in date_formats : try : dt = datetime . datetime . strptime ( string , date_format ) return _timestamp_ms_for_datetime ( dt ) except ValueError : continue raise argparse . ArgumentTypeError ( 'Invalid value for property of type "date": "%s".' % string )