function
funMake() {
// new Date()
var
d =
new
Date();
document.write(d +
'<br />'
);
// toLocaleTimeString()
document.write(d.toLocaleTimeString() +
// toLocaleDateString()
document.write(d.toLocaleDateString() +
// toLocaleString()
document.write(d.toLocaleString() +
// getFullYear()
document.write(d.getFullYear() +
// getMonth()
monthsRu = [];
monthsRu[0] =
'Январь'
;
monthsRu[1] =
'Февраль'
monthsRu[2] =
'Март'
monthsRu[3] =
'Апрель'
monthsRu[4] =
'Май'
monthsRu[5] =
'Июнь'
monthsRu[6] =
'Июль'
monthsRu[7] =
'Август'
monthsRu[8] =
'Сентябрь'
monthsRu[9] =
'Октябрь'
monthsRu[10] =
'Ноябрь'
monthsRu[11] =
'Декабрь'
monthsEn = [];
monthsEn[0] =
'January'
monthsEn[1] =
'February'
monthsEn[2] =
'March'
monthsEn[3] =
'April'
monthsEn[4] =
'May'
monthsEn[5] =
'June'
monthsEn[6] =
'July'
monthsEn[7] =
'August'
monthsEn[8] =
'September'
monthsEn[9] =
'October'
monthsEn[10] =
'November'
monthsEn[11] =
'December'
document.write(d.getMonth() +
document.write(monthsEn[d.getMonth()] +
document.write(monthsRu[d.getMonth()] +
// getDay()
daysRu = [];
daysRu[0] =
'Воскресенье'
daysRu[1] =
'Понедельник'
daysRu[2] =
'Вторник'
daysRu[3] =
'Среда'
daysRu[4] =
'Четверг'
daysRu[5] =
'Пятница'
daysRu[6] =
'Суббота'
daysEn = [];
daysEn[0] =
'Sunday'
daysEn[1] =
'Monday'
daysEn[2] =
'Tuesday'
daysEn[3] =
'Wednesday'
daysEn[4] =
'Thursday'
daysEn[5] =
'Friday'
daysEn[6] =
'Saturday'
document.write(d.getDay() +
document.write(daysEn[d.getDay()] +
document.write(daysRu[d.getDay()] +
// getHours()
document.write(d.getHours() +
// getMinutes()
document.write(d.getMinutes() +
// getSeconds()
document.write(d.getSeconds() +
// getMilliseconds()
document.write(d.getMilliseconds() +
// new Date(parameters)
Date(2014, 0, 15, 23, 59, 18, 128);
// setFullYear()
d.setFullYear(2010)
// setMonth()
d.setMonth(5)
// setHours()
d.setHours(15);
// setMinutes()
d.setMinutes(30);
// setSeconds()
d.setSeconds(45);
// setMilliseconds()
d.setMilliseconds(555);
}
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
funMake();