projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f30531fc7580c9880a34ef73974418e6d37184c7
[platform/framework/web/crosswalk-tizen.git]
/
1
define(['./startOf'], function (startOf) {
2
3
/**
4
* Check if date is "same" with optional period
5
*/
6
function isSame(date1, date2, period){
7
if (period) {
8
date1 = startOf(date1, period);
9
date2 = startOf(date2, period);
10
}
11
return Number(date1) === Number(date2);
12
}
13
14
return isSame;
15
16
});