| | WebCenter Interaction API | |
| PTSFieldType.DATETIME Field
|
Field type for date/time fields.
IMPORTANT: The search server stores all date-times as 32-bit floating-point values representing the number of minutes since 01-Jan-2000 00:00:00. Dates that are significantly far from this moment in time will suffer roundoff error. Date-time fields are best used for result sorting (see
IPTSQueryRequest.setResultsOrderBy
) or applications where high precision is not required (e.g. showing a "last-modified date" that does not need to be exact). If you need storage of exact times, store the full date-time value in some other repository, such as a database, and look it up after doing your search query.
See Also
PTSFieldType Class | com.plumtree.server.search Namespace