projects
/
app.jsdoc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a224de
)
Date.js
author
Alan Knowles
<alan@akbkhome.com>
Sat, 8 Oct 2011 10:28:47 +0000
(18:28 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 8 Oct 2011 10:28:47 +0000
(18:28 +0800)
Date.js
patch
|
blob
|
history
diff --git
a/Date.js
b/Date.js
index
ceb5292
..
774d3ac
100644
(file)
--- a/
Date.js
+++ b/
Date.js
@@
-523,9
+523,12
@@
Date = XObject.extend(Date,
}); // end static date..
// now add functions to date..
+/**
+ * @scope Date.prototype
+ */
XObject.extend(Date.prototype,
{
-
+
getElapsed : function(date) {
return Math.abs((date || new Date()).getTime()-this.getTime());
},