Core JavaScript 1.5 Reference:Global Objects:Date:toSource
From MDC
Non-standard
Contents |
[edit] Summary
Returns a string representing the source code of the object.
| Method of Date | |
| Implemented in: | JavaScript 1.3 |
| ECMA Version: | ECMA-262 |
[edit] Syntax
date.toSource()
[edit] Parameters
None.
[edit] Description
The toSource method returns the following values:
- For the built-in
Dateobject,toSourcereturns the following string indicating that the source code is not available:
function Date() {
[native code]
}
- For instances of
Date,toSourcereturns a string representing the source code.
This method is usually called internally by JavaScript and not explicitly in code.