Time.fromFileTime

Overview | Methods | Fields | This Package | All Packages

Time.fromFileTime

Creates a Time object based on the specified value.

Syntax

public static Time fromFileTime( long fileTime )

Parameters

fileTime

A long value that represents a Win32 FILETIME value to create a new Time object for.

Return Value

Returns a new Time object that represents the equivalent of the time stored in the fileTime parameter.

Remarks

The value stored in the fileTime parameter must be formatted as a Win32 FILETIME value, which means that the fileTime parameter must contain the number of 100 nanosecond units elapsed since January 1, 1601, in coordinated universal time (UTC). This method adjusts the base time and converts the time to local time.