summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/datetime/gettimeofday.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/datetime/gettimeofday.js.map')
-rw-r--r--node_modules/locutus/php/datetime/gettimeofday.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/datetime/gettimeofday.js.map b/node_modules/locutus/php/datetime/gettimeofday.js.map
new file mode 100644
index 0000000..32db2dd
--- /dev/null
+++ b/node_modules/locutus/php/datetime/gettimeofday.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/datetime/gettimeofday.js"],"names":["module","exports","gettimeofday","returnFloat","t","Date","y","getTime","getFullYear","sec","getUTCSeconds","usec","getUTCMilliseconds","minuteswest","getTimezoneOffset","dsttime","UTC"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,YAAT,CAAuBC,WAAvB,EAAoC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,IAAI,IAAIC,IAAJ,EAAR;AACA,MAAIC,IAAI,CAAR;;AAEA,MAAIH,WAAJ,EAAiB;AACf,WAAOC,EAAEG,OAAF,KAAc,IAArB;AACD;;AAED;AACAD,MAAIF,EAAEI,WAAF,EAAJ;AACA,SAAO;AACLC,SAAKL,EAAEM,aAAF,EADA;AAELC,UAAMP,EAAEQ,kBAAF,KAAyB,IAF1B;AAGLC,iBAAaT,EAAEU,iBAAF,EAHR;AAIL;AACAC,aAAS,KAAO,IAAIV,IAAJ,CAASC,CAAT,EAAY,CAAZ,CAAD,GAAmBD,KAAKW,GAAL,CAASV,CAAT,EAAY,CAAZ,CAApB,KAA0C,IAAID,IAAJ,CAASC,CAAT,EAAY,CAAZ,CAAD,GAAmBD,KAAKW,GAAL,CAASV,CAAT,EAAY,CAAZ,CAAjE;AALJ,GAAP;AAOD,CA7BD","file":"gettimeofday.js","sourcesContent":["module.exports = function gettimeofday (returnFloat) {\n // discuss at: http://locutus.io/php/gettimeofday/\n // original by: Brett Zamir (http://brett-zamir.me)\n // original by: Josh Fraser (http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/)\n // parts by: Breaking Par Consulting Inc (http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256CFB006C45F7)\n // revised by: Theriault (https://github.com/Theriault)\n // example 1: var $obj = gettimeofday()\n // example 1: var $result = ('sec' in $obj && 'usec' in $obj && 'minuteswest' in $obj &&80, 'dsttime' in $obj)\n // returns 1: true\n // example 2: var $timeStamp = gettimeofday(true)\n // example 2: var $result = $timeStamp > 1000000000 && $timeStamp < 2000000000\n // returns 2: true\n\n var t = new Date()\n var y = 0\n\n if (returnFloat) {\n return t.getTime() / 1000\n }\n\n // Store current year.\n y = t.getFullYear()\n return {\n sec: t.getUTCSeconds(),\n usec: t.getUTCMilliseconds() * 1000,\n minuteswest: t.getTimezoneOffset(),\n // Compare Jan 1 minus Jan 1 UTC to Jul 1 minus Jul 1 UTC to see if DST is observed.\n dsttime: 0 + (((new Date(y, 0)) - Date.UTC(y, 0)) !== ((new Date(y, 6)) - Date.UTC(y, 6)))\n }\n}\n"]} \ No newline at end of file