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;
A DateTime value representing the same date and time as the specified Windows file time.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | If the fileTime is not valid. |
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.
DateTime Structure | DateTime Members | System Namespace | Int64 | ToUniversalTime | System.DirectoryServices.IADsPropertyValue.UTCTime