projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add simple interval support to Date.getElapsed()
[roojs1]
/
docs
/
symbols
/
Date.json
diff --git
a/docs/symbols/Date.json
b/docs/symbols/Date.json
index
a6c9d72
..
8870698
100644
(file)
--- a/
docs/symbols/Date.json
+++ b/
docs/symbols/Date.json
@@
-214,7
+214,7
@@
"name" : "getElapsed",
"type" : "function",
"desc" : "Returns the number of milliseconds between this date and date",
"name" : "getElapsed",
"type" : "function",
"desc" : "Returns the number of milliseconds between this date and date",
- "sig" : "(date)",
+ "sig" : "(date
, interval
)",
"static" : false,
"memberOf" : "",
"isStatic" : false,
"static" : false,
"memberOf" : "",
"isStatic" : false,
@@
-232,13
+232,19
@@
"type" : "Date",
"desc" : "(optional) Defaults to now",
"isOptional" : false
"type" : "Date",
"desc" : "(optional) Defaults to now",
"isOptional" : false
+ },
+ {
+ "name" : "interval",
+ "type" : "String",
+ "desc" : "(optional) Default Date.MILLI, A valid date interval enum value (eg. Date.DAY)",
+ "isOptional" : false
}
],
"returns" : [
{
"name" : "",
"type" : "Number",
}
],
"returns" : [
{
"name" : "",
"type" : "Number",
- "desc" : "The diff in milliseconds"
+ "desc" : "The diff in milliseconds
or units of interval
"
}
]
},
}
]
},