[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Date/toTimeString [Back]  [Original]

Date.prototype.toTimeString() - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Date.prototype.toTimeString()

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

toTimeString() , Date - .

In this article

dateObj.toTimeString()

Date . toString() , - . SpiderMonkey , (, ) , (, , ). , ; toTimeString().

toTimeString() , , ECMA-262 toString() Date, .

: toTimeString()

js
var d = new Date(1993, 6, 28, 14, 39, 7);

console.log(d.toString()); //  Wed Jul 28 1993 14:39:07 GMT-0600 (PDT)
console.log(d.toTimeString()); //  14:39:07 GMT-0600 (PDT)

Specification
ECMAScript 2027 LanguageSpecification
# sec-date.prototype.totimestring


Web Proxy Viewer  |  New URL  |  Original Page