LoginSignup
0
0

More than 5 years have passed since last update.

toGMTString -> toUTCString

Posted at

Date.prototype.toGMTStringについて調べていたら、いつの間にかdeprecatedになっていたようで。

これからはDate.prototype.toUTCStringを使うと良いと。

DevTools-Console
> +new Date
1388046049585
> (new Date(1388046049585)).toGMTString();
"Thu, 26 Dec 2013 08:20:49 GMT"
> (new Date(1388046049585)).toUTCString();
"Thu, 26 Dec 2013 08:20:49 GMT"

出力は変わってないみたいだけど。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0