JavaScript『日付と時刻』
★情報元のサイト様★
「とほほのWWW入門」http://www.tohoho-web.com/www.htm
「MDN」https://developer.mozilla.org/ja/docs/Web/JavaScript
関連タイピング
-
プレイ回数4657英語長文120秒
-
プレイ回数599長文30秒
-
プレイ回数1237英語長文407打
-
プレイ回数1107長文299打
-
プレイ回数1298英語長文687打
-
プレイ回数77英語長文90秒
-
プレイ回数16長文805打
-
プレイ回数8332長文526打
問題文
(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);