summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/datetime/gmdate.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/datetime/gmdate.js.map')
-rw-r--r--node_modules/locutus/php/datetime/gmdate.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/datetime/gmdate.js.map b/node_modules/locutus/php/datetime/gmdate.js.map
new file mode 100644
index 0000000..825ddc1
--- /dev/null
+++ b/node_modules/locutus/php/datetime/gmdate.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/datetime/gmdate.js"],"names":["module","exports","gmdate","format","timestamp","date","require","dt","Date","parse","toUTCString","slice"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,MAAjB,EAAyBC,SAAzB,EAAoC;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,OAAOC,QAAQ,kBAAR,CAAX;;AAEA,MAAIC,KAAK,OAAOH,SAAP,KAAqB,WAArB,GAAmC,IAAII,IAAJ,EAAnC,CAA8C;AAA9C,IACLJ,qBAAqBI,IAArB,GAA4B,IAAIA,IAAJ,CAASJ,SAAT,CAA5B,CAAgD;AAAhD,IACA,IAAII,IAAJ,CAASJ,YAAY,IAArB,CAFJ,CAVmD,CAYpB;;AAE/BA,cAAYI,KAAKC,KAAL,CAAWF,GAAGG,WAAH,GAAiBC,KAAjB,CAAuB,CAAvB,EAA0B,CAAC,CAA3B,CAAX,IAA4C,IAAxD;;AAEA,SAAON,KAAKF,MAAL,EAAaC,SAAb,CAAP;AACD,CAjBD","file":"gmdate.js","sourcesContent":["module.exports = function gmdate (format, timestamp) {\n // discuss at: http://locutus.io/php/gmdate/\n // original by: Brett Zamir (http://brett-zamir.me)\n // input by: Alex\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // example 1: gmdate('H:m:s \\\\m \\\\i\\\\s \\\\m\\\\o\\\\n\\\\t\\\\h', 1062402400); // Return will depend on your timezone\n // returns 1: '07:09:40 m is month'\n\n var date = require('../datetime/date')\n\n var dt = typeof timestamp === 'undefined' ? new Date() // Not provided\n : timestamp instanceof Date ? new Date(timestamp) // Javascript Date()\n : new Date(timestamp * 1000) // UNIX timestamp (auto-convert to int)\n\n timestamp = Date.parse(dt.toUTCString().slice(0, -4)) / 1000\n\n return date(format, timestamp)\n}\n"]} \ No newline at end of file