Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
2.1.42 [ECMA-262/5] Section 15.9.5.4, Date.prototype.toTimeString ()
Collapse the table of content
Expand the table of content

2.1.42 [ECMA-262/5] Section 15.9.5.4, Date.prototype.toTimeString ()

C0003:

The specification states:

 This function returns a String value. The contents of the String are implementation-dependent, but are intended to represent the "time" portion of the Date in the current time zone in a convenient, human-readable form.

IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

The returned String value is determined from the following steps:

  1. Let tv be the time value.

  2. If tv is NaN, return the string "NaN".

  3. Let t be LocalTime(tv).

  4. Using t, create a string value that has the following format, according to the items that are defined in section 2.1.40 of this document:

  5. hh:mm:ssbzzzzzz

  6. Return Result(4).

Show:
© 2015 Microsoft