google-photos-album-image-url-fetch
Version:
extract public image url from google photos shared album url
15 lines • 538 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMicroSeconds = isMicroSeconds;
exports.dateCompare = dateCompare;
function isMicroSeconds(n) {
return (-100000000000000 < n && n <= -30000000000) || (100000000000 <= n && n < 100000000000000);
}
function dateCompare(l, r) {
if (!isMicroSeconds(l) || !isMicroSeconds(r))
throw new Error('date is not micro sec.');
l = Math.floor(l / 1000);
r = Math.floor(r / 1000);
return l === r;
}
//# sourceMappingURL=date_compare.js.map