NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.FromFileTime

Creates a DateTime from an Operating System file time.

[Visual Basic]
Public Shared Function FromFileTime( _
   ByVal fileTime As Long _
) As DateTime
[C#]
public static DateTime FromFileTime(
   long fileTime
);
[C++]
public: static DateTime FromFileTime(
   __int64 fileTime
);
[JScript]
public static function FromFileTime(
   fileTime : long
) : DateTime;

Parameters

fileTime
A Windows file time.

Return Value

A DateTime value representing the same date and time as the specified Windows file time.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException If the fileTime is not valid.

Remarks

The FromFileTime method is a Windows file time that has a long value representing the date and time as the number of 100-nanosecond intervals that have elapsed since 1/1/1601 12:00 AM UTC.

Note   Thet FromFileTime returns the local time.

See Also

DateTime Structure | DateTime Members | System Namespace | Int64 | ToUniversalTime | System.DirectoryServices.IADsPropertyValue.UTCTime