def validate_time_arg(arg, parent, key)
      xml_value = time_to_xml_hash(arg)
      parent[key] = xml_value
      return xml_value
    end
def validate_time_arg(arg, parent, key)
      xml_value = time_to_xml_hash(arg)
      parent[key] = xml_value
      return xml_value
    end
Validates Time argument.