google.appengine.api.search.DateField

A Field that has a date or datetime value.

Inherits From: Field, expected_type

Only Python "naive" date or datetime values may be used (not "aware" values).

The following example shows a date field named creation_date: DateField(name='creation_date', value=datetime.date(2011, 03, 11))

name The name of the field.
value A datetime.date or a datetime.datetime.

TypeError If value is not a datetime.date or a datetime.datetime.

language Returns the code of the language the content in value is written in.
name Returns the name of the field.
value Returns the value of the field.

Methods

__eq__

View source

Return self==value.

__ne__

View source

Return self!=value.

ATOM 'ATOM'
DATE 'DATE'
GEO_POINT 'GEO_POINT'
HTML 'HTML'
NUMBER 'NUMBER'
TEXT 'TEXT'
TOKENIZED_PREFIX 'TOKENIZED_PREFIX'
UNTOKENIZED_PREFIX 'UNTOKENIZED_PREFIX'
VECTOR 'VECTOR'