DatePrototype.toGMTString(Object) 方法

定義

建立一個字串表示 DateObject ,包含星期幾、月份、日期、年份及時間,並以協調世界時(UTC)表示。 toUTCString(Object)能用就用吧。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static System::String ^ toGMTString(System::Object ^ thisob);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_toGMTString)]
[Microsoft.JScript.NotRecommended("toGMTString")]
public static string toGMTString(object thisob);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_toGMTString)>]
[<Microsoft.JScript.NotRecommended("toGMTString")>]
static member toGMTString : obj -> string
Public Shared Function toGMTString (thisob As Object) As String

參數

thisob
Object

這個方法作用的對象。

傳回

的字串表示 thisob

屬性

適用於

另請參閱