NineSec Team Shell
Server IP : 92.205.26.207  /  Your IP : 216.73.216.16
Web Server : Apache
System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64
User : zikryat ( 1002)
PHP Version : 8.3.23
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/zikryat/public_html/node_modules/date-and-time/plugin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/zikryat/public_html/node_modules/date-and-time/plugin/meridiem.js
(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
    typeof define === 'function' && define.amd ? define(factory) :
    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (global.date = global.date || {}, global.date.plugin = global.date.plugin || {}, global.date.plugin.meridiem = factory()));
})(this, (function () { 'use strict';

    /**
     * @preserve date-and-time.js plugin
     * @preserve meridiem
     */

    var plugin = function (date) {
        var name = 'meridiem';

        date.plugin(name, {
            res: {
                AA: ['A.M.', 'P.M.'],
                a: ['am', 'pm'],
                aa: ['a.m.', 'p.m.']
            },
            formatter: {
                AA: function (d) {
                    return this.res.AA[d.getHours() > 11 | 0];
                },
                a: function (d) {
                    return this.res.a[d.getHours() > 11 | 0];
                },
                aa: function (d) {
                    return this.res.aa[d.getHours() > 11 | 0];
                }
            },
            parser: {
                AA: function (str) {
                    var result = this.find(this.res.AA, str);
                    result.token = 'A';
                    return result;
                },
                a: function (str) {
                    var result = this.find(this.res.a, str);
                    result.token = 'A';
                    return result;
                },
                aa: function (str) {
                    var result = this.find(this.res.aa, str);
                    result.token = 'A';
                    return result;
                }
            }
        });
        return name;
    };

    return plugin;

}));

NineSec Team - 2022