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/ordinal.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.ordinal = factory()));
})(this, (function () { 'use strict';

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

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

        date.plugin(name, {
            formatter: {
                DDD: function (d) {
                    var day = d.getDate();

                    switch (day) {
                    case 1:
                    case 21:
                    case 31:
                        return day + 'st';
                    case 2:
                    case 22:
                        return day + 'nd';
                    case 3:
                    case 23:
                        return day + 'rd';
                    default:
                        return day + 'th';
                    }
                }
            }
        });
        return name;
    };

    return plugin;

}));

NineSec Team - 2022