首页
目录
View on GitHub
the Leancloud framework G
_
assignPath.html
deepExtend.html
escapeRegExp.html
datetime
delta
days.html
is_same_day.html
display
hm.html
hms.html
md.html
ym.html
ymd.html
ymdhm.html
ymdhms.html
move
to_midnight.html
to_month_end.html
to_month_start.html
to_next_midnight.html
to_next_month.html
to_tomorrow.html
parse.html
debug
errorToString.html
fs
basename.html
hack
Function
inject.html
registerPrototype.html
hash
md5.html
md5_file.html
html
DataTableQuery.html
default_template.html
uglify.html
mongo
objectId.html
net
getAvServer.html
request.html
random
ControlledRoller.html
util
arrayForEachSync.html
findAll.html
findEachChunk.html
pager_apply.html
queryForEach.html
queryForEachSync.html
<目录
days(a, b)
计算两个日期 a & b 之间差多少天
的绝对值
,向上取整
a、b都是Date对象
例如a是今天2点,b是今天3点,则 days(a,b) = 1