2.1.107 [ECMA-262-1999] Section, Date.prototype.toTimeString ()


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.

For JScript 5.x running on Windows, the string is determined as follows:

  1. Let tv be this time value.

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

  3. Let t be LocalTime(tv).

    1. Using t, create a string value with the following format, based upon the format description given in [ECMA-262-1999] Section The format is: hh:mm:ssbzzzzzz.

  4. Return Result(4).