diff options
Diffstat (limited to 'node_modules/locutus/php/datetime/time.js')
-rw-r--r-- | node_modules/locutus/php/datetime/time.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/locutus/php/datetime/time.js b/node_modules/locutus/php/datetime/time.js new file mode 100644 index 0000000..0c53101 --- /dev/null +++ b/node_modules/locutus/php/datetime/time.js @@ -0,0 +1,15 @@ +"use strict"; + +module.exports = function time() { + // discuss at: http://locutus.io/php/time/ + // original by: GeekFG (http://geekfg.blogspot.com) + // improved by: Kevin van Zonneveld (http://kvz.io) + // improved by: metjay + // improved by: HKM + // example 1: var $timeStamp = time() + // example 1: var $result = $timeStamp > 1000000000 && $timeStamp < 2000000000 + // returns 1: true + + return Math.floor(new Date().getTime() / 1000); +}; +//# sourceMappingURL=time.js.map
\ No newline at end of file |