Apache Lucene.Net 2.4.0 Class Library API

DateTools Methods

The methods of the DateTools class are listed below. For a complete list of DateTools class members, see the DateTools Members topic.

Public Static Methods

DateToString Converts a Date to a string suitable for indexing.
RoundOverloaded. Limit a date's resolution. For example, the date
2004-09-21 13:50:11
will be changed to
2004-09-01 00:00:00
when using
Resolution.MONTH
.
StringToDate Converts a string produced by
timeToString
or
dateToString
back to a time, represented as a Date object.
StringToTime Converts a string produced by
timeToString
or
dateToString
back to a time, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT.
TimeToString Converts a millisecond time to a string suitable for indexing.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

DateTools Class | Lucene.Net.Documents Namespace