扫码一下
查看教程更方便
toutcstring() 方法可根据世界时 (utc) 把 date 对象转换为字符串,并返回结果。
toutcstring() 方法可根据世界时 (utc) 把 date 对象转换为字符串,并返回结果。
提示: 协调世界时,又称世界统一时间,世界标准时间,国际协调时间,简称utc。它从英文"coordinated universal time"/法文"temps universel cordonné"而来。
注意: utc时间 与 gmt(格林尼治)时间一样。
该方法的语法如下:
date.toutcstring()
无
date object 的字符串表示,用世界时(utc)表示。
所有主要浏览器都支持 toutcstring() 方法
javascript toutcstring method
输出结果:
wed, 28 jul 2010 06:39:07 gmt