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
/
json
/
roodata.json
diff --git
a/docs/json/roodata.json
b/docs/json/roodata.json
index
536ec34
..
a6e0b65
100644
(file)
--- a/
docs/json/roodata.json
+++ b/
docs/json/roodata.json
@@
-331,7
+331,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,
@@
-349,13
+349,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
"
}
]
},
}
]
},