Logo Search packages:      
Sourcecode: qt4-x11 version File versions

DateField Class Reference

#include <DateField.h>

Inheritance diagram for DateField:

List of all members.


Detailed Description

Provides support for converting dates to strings and vice-versa. The strings are structured so that lexicographic sorting orders by date, which makes them suitable for use as field values and search terms.

Note that this class saves dates with millisecond granularity, which is bad for RangeQuery and PrefixQuery, as those queries are expanded to a BooleanQuery with a potentially large number of terms when searching. Thus you might want to use DateTools instead.

Note: dates before 1970 cannot be used, and therefore cannot be indexed when using this class. See DateTools for an alternative without such a limitation.

Deprecated:
If you build a new index, use DateTools instead. This class is included for use with existing indices and will be removed in a future release.

Definition at line 41 of file DateField.h.


Static Public Member Functions

static int64_t stringToTime (const TCHAR *s)
static void timeToString (const int64_t time, TCHAR *str)
static TCHAR * timeToString (const int64_t time)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index