HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/f/r/e/frenchy/www/french-american.org/current/node_modules/locutus/php/datetime/gmdate.js
'use strict';

module.exports = function gmdate(format, timestamp) {
  //  discuss at: http://locutus.io/php/gmdate/
  // original by: Brett Zamir (http://brett-zamir.me)
  //    input by: Alex
  // bugfixed by: Brett Zamir (http://brett-zamir.me)
  //   example 1: gmdate('H:m:s \\m \\i\\s \\m\\o\\n\\t\\h', 1062402400); // Return will depend on your timezone
  //   returns 1: '07:09:40 m is month'

  var date = require('../datetime/date');

  var dt = typeof timestamp === 'undefined' ? new Date() // Not provided
  : timestamp instanceof Date ? new Date(timestamp) // Javascript Date()
  : new Date(timestamp * 1000); // UNIX timestamp (auto-convert to int)

  timestamp = Date.parse(dt.toUTCString().slice(0, -4)) / 1000;

  return date(format, timestamp);
};
//# sourceMappingURL=gmdate.js.map