本頁是否能提供幫助?
您對此內容的意見反應十分重要。 請告訴我們您的想法。
其他意見反應?
剩餘 1500 個字元
匯出 (0) 列印
全部展開
EN
本內容沒有您的語言版本,但有英文版本。

DateTime.FromFileTimeUtc Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Returns a DateTime equivalent to the specified operating system file timestamp, adjusted to coordinated universal time (UTC).

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

Parameters

fileTime
A Windows file time expressed in ticks.

Return Value

A DateTime value representing the date and time of fileTime, adjusted to coordinated universal time (UTC).

Exceptions

Exception Type Condition
ArgumentOutOfRangeException fileTime is less than 0.

Remarks

fileTime is a 64-bit signed integer value representing a Windows file timestamp. The timestamp is the number of 100-nanosecond intervals that have elapsed since January 1, 1601 A.D. (C.E.) 12:00 A.M. coordinated universal time (UTC). The FromFileTimeUtc method returns fileTime relative to January 1, 1 A.D. (C.E.) 12:00 A.M.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DateTime Structure | DateTime Members | System Namespace | ToUniversalTime | GetUtcOffset | FromFileTime

Microsoft 正展開一份線上問卷調查,了解您對於 MSDN 網站的看法。 如果您選擇參加,您離開 MSDN 網站時即會顯示線上問卷調查。

您是否想要參加?
顯示:
© 2015 Microsoft