PHP 8.2.31
Preview: recommendations.js Size: 290 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Assist/lib/recommendations.js

export const isAtLeastNDaysAgo = (dateString = new Date(), numDays = 0) => {
	const siteCreatedDaysAgo = Math.floor(
		(Date.now() - new Date(dateString)) / (1000 * 60 * 60 * 24),
	);
	// Account for future time zones by min 0
	return Math.max(0, siteCreatedDaysAgo) >= Number(numDays);
};

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
2.72 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
1.48 KB lrw-r--r-- 2023-10-11 06:07:34
Edit Download
290 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).