JavaScript『日付と時刻』
★情報元のサイト様★
「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web/JavaScript
関連タイピング
-
プレイ回数7971長文英字344打
-
プレイ回数559英語長文300秒
-
プレイ回数3.8万302打
-
プレイ回数2.9万短文英字60秒
-
プレイ回数902英語長文225打
-
プレイ回数2049短文9打
-
プレイ回数1732英語60秒
-
プレイ回数2929英語長文841打
問題文
(GMT+0900)
GMT+0900
(new Date();)
new Date();
(new Date(2019,4,1,0,0,0);)
new Date(2019,4,1,0,0,0);
(new Date('May 1,2020 0:0:00');)
new Date('May 1,2020 0:0:00');
(new Date().getFullYear();)
new Date().getFullYear();
(new Date().getMonth();)
new Date().getMonth();
(new Date().getDate();)
new Date().getDate();
(new Date().getDay();)
new Date().getDay();
(new Date().getHours();)
new Date().getHours();
(new Date().getMinutes();)
new Date().getMinutes();
(new Date().getSeconds();)
new Date().getSeconds();
(new Date().getMilliseconds();)
new Date().getMilliseconds();
(var d=new Date(2020,0,1,9); d.setFullYear(1970);)
var d=new Date(2020,0,1,9); d.setFullYear(1970);
(d.setMonth(0);)
d.setMonth(0);
(d.setDate(1);)
d.setDate(1);
(d.setHours(0);)
d.setHours(0);
(d.setMinutes(0);)
d.setMinutes(0);
(d.setSeconds(0);)
d.setSeconds(0);
(d.setMilliseconds(000);)
d.setMilliseconds(000);
(new Date().getUTCFullYear();)
new Date().getUTCFullYear();
(new Date().getUTCMonth();)
new Date().getUTCMonth();
(new Date().getUTCDate();)
new Date().getUTCDate();
(new Date().getUTCDay();)
new Date().getUTCDay();
(new Date().getUTCHours();)
new Date().getUTCHours();
(new Date().getUTCMinutes();)
new Date().getUTCMinutes();
(new Date().getUTCSeconds();)
new Date().getUTCSeconds();
(new Date().getUTCMilliseconds();)
new Date().getUTCMilliseconds();
(var d=new Date(2020,0,1,9); d.setUTCFullYear(1970);)
var d=new Date(2020,0,1,9); d.setUTCFullYear(1970);
(d.setUTCMonth(11).getUTCMonth();)
d.setUTCMonth(11).getUTCMonth();
(d.setUTCDate(31);)
d.setUTCDate(31);
(d.setUTCHours(1);)
d.setUTCHours(1);
(d.setUTCMinutes(00);)
d.setUTCMinutes(00);
(d.setUTCSeconds(00);)
d.setUTCSeconds(00);
(d.setUTCMilliseconds(000);)
d.setUTCMilliseconds(000);
(new Date().getTimezoneOffset();)
new Date().getTimezoneOffset();
(new Date().toString();)
new Date().toString();
(new Date().toUTCString();)
new Date().toUTCString();
(new Date().toLocaleString('ja');)
new Date().toLocaleString('ja');
(new Date().toDateString();)
new Date().toDateString();
(new Date().toTimeString();)
new Date().toTimeString();
(var op={weekday:'long',year:'numeric',month:'long',day:'numeric'};)
var op={weekday:'long',year:'numeric',month:'long',day:'numeric'};
(new Date().toLocaleDateString('ja-JP-u-ca-japanese',op);)
new Date().toLocaleDateString('ja-JP-u-ca-japanese',op);
(new Date().toLocaleTimeString();)
new Date().toLocaleTimeString();
(new Date().toISOString();)
new Date().toISOString();
(new Date().toJSON();)
new Date().toJSON();
(new Date(1970,0,1,9,0,0).getTime();)
new Date(1970,0,1,9,0,0).getTime();
(var d=new Date('99/12/31 23:59:59');var t=d.getTime(); t+=1000;d.setTime(t);console.log(d);)
var d=new Date('99/12/31 23:59:59');var t=d.getTime(); t+=1000;d.setTime(t);console.log(d);
(Date.now();)
Date.now();
(Date.parse('1970/1/1 9:00');)
Date.parse('1970/1/1 9:00');
(Date.UTC(70,0,1,0,0,0);)
Date.UTC(70,0,1,0,0,0);