{"size": 1535, "ext": "js", "max_stars_repo_path": "public/js/app/customjs/custom/jalaliDate.js", "max_stars_repo_name": "SetareBehzadi/notificationService", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/app/customjs/custom/jalaliDate.js", "max_issues_repo_name": "SetareBehzadi/notificationService", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/app/customjs/custom/jalaliDate.js", "max_forks_repo_name": "SetareBehzadi/notificationService", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.2463768116, "max_line_length": 64, "alphanum_fraction": 0.5413680782}
miladiToShamsi = function (date) {
    moment.locale('en');
    var shmasi = moment(date, 'YYYY-MM-DD HH:mm:ss')
    //  .format('jYYYY/jMM/jDD HH:mm:ss'); // 1392/6/31 23:59:59
        .format('jYYYY/jMM/jDD HH:mm'); // 1392/6/31 23:59:59
    return shmasi;

};

miladiToShamsiNoHour = function (date) {
    moment.locale('en');
    var shmasi = moment(date, 'YYYY-MM-DD HH:mm:ss')
    //  .format('jYYYY/jMM/jDD HH:mm:ss'); // 1392/6/31 23:59:59
        .format('jYYYY/jMM/jDD'); // 1392/6/31 23:59:59
    return shmasi;

};



jalaliToMiladi = function (date) {

    var miladi = moment(date, 'YYYY/MM/DD')
        .locale('en')
        .format('YYYY-MM-DD HH:mm:ss'); // 1392/6/31 23:59:59
    return miladi;
};

miladiToShamsiYear = function (date) {
    moment.locale('en');
    var shmasi = moment(date, 'YYYY-MM-DD HH:mm:ss')
    //  .format('jYYYY/jMM/jDD HH:mm:ss'); // 1392/6/31 23:59:59
        .format('jYYYY/jMM'); // 1392/6
    return shmasi;

};

miladiToShamsiMonth = function (date) {
    moment.locale('en');
    var shmasi = moment(date, 'YYYY-MM-DD HH:mm:ss')
    //  .format('jYYYY/jMM/jDD HH:mm:ss'); // 1392/6/31 23:59:59
        .format('jM'); // 1392/6/31 23:59:59
    return shmasi;

};

monthInPersian = function (month) {

    var months = [
        'something wrong',
        'فروردین',
        'اردیبهشت',
        'خرداد',
        'تیر',
        'مرداد',
        'شهریور',
        'مهر',
        'آبان',
        'آذر',
        'دی',
        'بهمن',
        'اسفند'
    ];

    return months[month];

};

