Limit a date's resolution. For example, the date
(which represents 2004-09-21 13:50:11) will be changed to
(2004-09-01 00:00:00) when using
.
Namespace: Lucene.Net.DocumentsCopyC#
1095767411000
CopyC#
1093989600000
CopyC#
Resolution.MONTH
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static long Round( long time, DateTools..::..Resolution resolution ) |
Visual Basic |
---|
Public Shared Function Round ( _ time As Long, _ resolution As DateTools..::..Resolution _ ) As Long |
Visual C++ |
---|
public: static long long Round( long long time, DateTools..::..Resolution^ resolution ) |
Parameters
- time
- Type: System..::..Int64
The time in milliseconds (not ticks).
- 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 thanCopyC#
resolution