Converts a millisecond time to a string suitable for indexing.

Namespace: Lucene.Net.Documents
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static string TimeToString(
	long time,
	DateTools..::..Resolution resolution
)
Visual Basic
Public Shared Function TimeToString ( _
	time As Long, _
	resolution As DateTools..::..Resolution _
) As String
Visual C++
public:
static String^ TimeToString(
	long long time, 
	DateTools..::..Resolution^ resolution
)

Parameters

time
Type: System..::..Int64
the date expressed as milliseconds since January 1, 1970, 00:00:00 GMT
resolution
Type: Lucene.Net.Documents..::..DateTools..::..Resolution
the desired resolution, see {@link #Round(long, DateTools.Resolution)}

Return Value

a string in format
CopyC#
yyyyMMddHHmmssSSS
or shorter, depending on
CopyC#
resolution
; using GMT as timezone

See Also