Limit a date's resolution. For example, the date
CopyC#
1095767411000
(which represents 2004-09-21 13:50:11) will be changed to
CopyC#
1093989600000
(2004-09-01 00:00:00) when using
CopyC#
Resolution.MONTH
.

Namespace: Lucene.Net.Documents
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 than
CopyC#
resolution
set to 0 or 1, expressed as milliseconds since January 1, 1970, 00:00:00 GMT

See Also