cDateTimeStatic: FromMilliseconds

FromMilliseconds

Returns a cDateTime object from milliseconds.



 Public Function FromMilliseconds(
	  ByVal ms As Currency,
	  Optional ByVal Kind As DateTimeKind = UnspecifiedKind ) As cDateTime

Parameters

ms
[ByVal] Currency. The number of milliseconds the time is equal to.
Kind
[ByVal] Optional. DateTimeKind. Specifies whether the cDateTime is a UTC, Local, or unspecified time type.  

Default: UnspecifiedKind

Return Values

cDateTime -  The cDateTime object converted from milliseconds.

Remarks

Since a Currency can be passed in, the fractional portion can be used to represent the number ticks (1/10000 ms) in the date.

See Also

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