cDateTimeStatic: FromFileTime

FromFileTime

Creates a cDateTime object from an operating system file timestamp.



 Public Function FromFileTime(
	  ByVal Time As Currency ) As cDateTime

Parameters

Time
[ByVal] Currency. The file time in UTC time.

Return Values

cDateTime -  The cDateTime of the file time converted to local time from UTC time.

Remarks

Time is a 64-bit integer representing a Windows file timestamp. Using a Currency datatype means the timestamp is represented as milliseconds with the fraction representing ticks of a millisecond. No conversion if performed. The 64-bit values is used as is.

The timestamp is the number of milliseconds (including the fractional tick portion) elasped since January 1, 1601 A.D. 12:00 A.M. coordinated universal time (UTC).

A tick is 100-nanoseconds. There are 10000 ticks per millisecond, equivalent to the number of fractional values in a Currency datatype.

See Also

Project VBCorLib Overview Class cDateTimeStatic Overview cDateTimeStatic Properties cDateTimeStatic Methods FromBinary FromFileTimeUtc