共用方式為


LogFormatter.PrintTime(DateTime) 方法

定義

公用程式函式,可將 物件轉換成 DateTime Logger 子系統所使用的可列印時間格式。

public static string PrintTime (DateTime date);
static member PrintTime : DateTime -> string
Public Shared Function PrintTime (date As DateTime) As String

參數

date
DateTime

DateTime要列印的值。

傳回

輸入資料的格式化字串表示,採用 Logger 子系統所使用的可列印格式。

適用於