DatePrototype.toGMTString(Object) 方法

定义

创建指定的 DateObject 的字符串表示形式,其中包含以协调世界时 (UTC) 表示的星期几、月份、日期、年份和时间。Creates a string representation of the specified DateObject that contains the day of the week, the month, the date, the year, and the time, expressed in Coordinated Universal Time (UTC). 如有可能,请改用 toUTCString(Object)Use toUTCString(Object) instead, when you can.

此 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

此方法所作用于的对象。The object that this method is acting upon.

返回

String

thisob 的字符串表示形式。A string representation of thisob.

属性

适用于

另请参阅