Limit a date's resolution. For example, the date
CopyC#
will be changed to
CopyC# when using
CopyC#.
Namespace: Lucene.Net.Documents2004-09-21 13:50:11
2004-09-01 00:00:00
Resolution.MONTH
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
| C# |
|---|
public static DateTime Round( DateTime date, DateTools..::..Resolution resolution ) |
| Visual Basic |
|---|
Public Shared Function Round ( _ date As DateTime, _ resolution As DateTools..::..Resolution _ ) As DateTime |
| Visual C++ |
|---|
public: static DateTime Round( DateTime date, DateTools..::..Resolution^ resolution ) |
Parameters
- date
- Type: System..::..DateTime
[Missing <param name="date"/> documentation for "M:Lucene.Net.Documents.DateTools.Round(System.DateTime,Lucene.Net.Documents.DateTools.Resolution)"]
- resolution
- Type: Lucene.Net.Documents..::..DateTools..::..Resolution
The desired resolution of the date to be returned
Return Value
the date with all values more precise thanresolution