Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla5/media/com_fabrik/js/lib/datejs/ |
| [Home] [System Details] [Kill Me] |
/*! Fabrik */
!function(){var a=Date,b=a.prototype,c=a.CultureInfo,d=function(a,b){return
b||(b=2),("000"+a).slice(-1*b)};b.clearTime=function(){return
this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this},b.setTimeToNow=function(){var
a=new Date;return
this.setHours(a.getHours()),this.setMinutes(a.getMinutes()),this.setSeconds(a.getSeconds()),this.setMilliseconds(a.getMilliseconds()),this},a.today=function(){return(new
Date).clearTime()},a.compare=function(a,b){if(isNaN(a)||isNaN(b))throw new
Error(a+" - "+b);if(a instanceof Date&&b instanceof
Date)return b>a?-1:a>b?1:0;throw new TypeError(a+" -
"+b)},a.equals=function(a,b){return
0===a.compareTo(b)},a.getDayNumberFromName=function(a){for(var
b=c.dayNames,d=c.abbreviatedDayNames,e=c.shortestDayNames,f=a.toLowerCase(),g=0;g<b.length;g++)if(b[g].toLowerCase()==f||d[g].toLowerCase()==f||e[g].toLowerCase()==f)return
g;return-1},a.getMonthNumberFromName=function(a){for(var
b=c.monthNames,d=c.abbreviatedMonthNames,e=a.toLowerCase(),f=0;f<b.length;f++)if(b[f].toLowerCase()==e||d[f].toLowerCase()==e)return
f;return-1},a.isLeapYear=function(a){return
a%4===0&&a%100!==0||a%400===0},a.getDaysInMonth=function(b,c){return[31,a.isLeapYear(b)?29:28,31,30,31,30,31,31,30,31,30,31][c]},a.getTimezoneAbbreviation=function(a){for(var
b=c.timezones,d=0;d<b.length;d++)if(b[d].offset===a)return
b[d].name;return null},a.getTimezoneOffset=function(a){for(var
b=c.timezones,d=0;d<b.length;d++)if(b[d].name===a.toUpperCase())return
b[d].offset;return null},b.clone=function(){return new
Date(this.getTime())},b.compareTo=function(a){return
Date.compare(this,a)},b.equals=function(a){return Date.equals(this,a||new
Date)},b.between=function(a,b){return
this.getTime()>=a.getTime()&&this.getTime()<=b.getTime()},b.isAfter=function(a){return
1===this.compareTo(a||new
Date)},b.isBefore=function(a){return-1===this.compareTo(a||new
Date)},b.isToday=b.isSameDay=function(a){return
this.clone().clearTime().equals((a||new
Date).clone().clearTime())},b.addMilliseconds=function(a){return
this.setMilliseconds(this.getMilliseconds()+1*a),this},b.addSeconds=function(a){return
this.addMilliseconds(1e3*a)},b.addMinutes=function(a){return
this.addMilliseconds(6e4*a)},b.addHours=function(a){return
this.addMilliseconds(36e5*a)},b.addDays=function(a){return
this.setDate(this.getDate()+1*a),this},b.addWeeks=function(a){return
this.addDays(7*a)},b.addMonths=function(b){var c=this.getDate();return
this.setDate(1),this.setMonth(this.getMonth()+1*b),this.setDate(Math.min(c,a.getDaysInMonth(this.getFullYear(),this.getMonth()))),this},b.addYears=function(a){return
this.addMonths(12*a)},b.add=function(a){if("number"==typeof
a)return this._orient=a,this;var b=a;return
b.milliseconds&&this.addMilliseconds(b.milliseconds),b.seconds&&this.addSeconds(b.seconds),b.minutes&&this.addMinutes(b.minutes),b.hours&&this.addHours(b.hours),b.weeks&&this.addWeeks(b.weeks),b.months&&this.addMonths(b.months),b.years&&this.addYears(b.years),b.days&&this.addDays(b.days),this};var
e,f,g;b.getWeek=function(){var a,b,c,d,h,i,j,k,l,m;return
e=e?e:this.getFullYear(),f=f?f:this.getMonth()+1,g=g?g:this.getDate(),2>=f?(a=e-1,b=(a/4|0)-(a/100|0)+(a/400|0),c=((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0),l=b-c,h=0,i=g-1+31*(f-1)):(a=e,b=(a/4|0)-(a/100|0)+(a/400|0),c=((a-1)/4|0)-((a-1)/100|0)+((a-1)/400|0),l=b-c,h=l+1,i=g+(153*(f-3)+2)/5+58+l),j=(a+b)%7,d=(i+j-h)%7,k=i+3-d|0,m=0>k?53-((j-l)/5|0):k>364+l?1:(k/7|0)+1,e=f=g=null,m},b.getISOWeek=function(){return
e=this.getUTCFullYear(),f=this.getUTCMonth()+1,g=this.getUTCDate(),d(this.getWeek())},b.setWeek=function(a){return
this.moveToDayOfWeek(1).addWeeks(a-this.getWeek())};var
h=function(a,b,c,d){if("undefined"==typeof
a)return!1;if("number"!=typeof a)throw new TypeError(a+" is
not a Number.");if(b>a||a>c)throw new RangeError(a+" is not
a valid value for
"+d+".");return!0};a.validateMillisecond=function(a){return
h(a,0,999,"millisecond")},a.validateSecond=function(a){return
h(a,0,59,"second")},a.validateMinute=function(a){return
h(a,0,59,"minute")},a.validateHour=function(a){return
h(a,0,23,"hour")},a.validateDay=function(b,c,d){return
h(b,1,a.getDaysInMonth(c,d),"day")},a.validateMonth=function(a){return
h(a,0,11,"month")},a.validateYear=function(a){return
h(a,0,9999,"year")},b.set=function(b){return
a.validateMillisecond(b.millisecond)&&this.addMilliseconds(b.millisecond-this.getMilliseconds()),a.validateSecond(b.second)&&this.addSeconds(b.second-this.getSeconds()),a.validateMinute(b.minute)&&this.addMinutes(b.minute-this.getMinutes()),a.validateHour(b.hour)&&this.addHours(b.hour-this.getHours()),a.validateMonth(b.month)&&this.addMonths(b.month-this.getMonth()),a.validateYear(b.year)&&this.addYears(b.year-this.getFullYear()),a.validateDay(b.day,this.getFullYear(),this.getMonth())&&this.addDays(b.day-this.getDate()),b.timezone&&this.setTimezone(b.timezone),b.timezoneOffset&&this.setTimezoneOffset(b.timezoneOffset),b.week&&h(b.week,0,53,"week")&&this.setWeek(b.week),this},b.moveToFirstDayOfMonth=function(){return
this.set({day:1})},b.moveToLastDayOfMonth=function(){return
this.set({day:a.getDaysInMonth(this.getFullYear(),this.getMonth())})},b.moveToNthOccurrence=function(a,b){var
c=0;if(b>0)c=b-1;else if(-1===b)return
this.moveToLastDayOfMonth(),this.getDay()!==a&&this.moveToDayOfWeek(a,-1),this;return
this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(a,1).addWeeks(c)},b.moveToDayOfWeek=function(a,b){var
c=(a-this.getDay()+7*(b||1))%7;return
this.addDays(0===c?c+=7*(b||1):c)},b.moveToMonth=function(a,b){var
c=(a-this.getMonth()+12*(b||1))%12;return
this.addMonths(0===c?c+=12*(b||1):c)},b.getOrdinalNumber=function(){return
Math.ceil((this.clone().clearTime()-new
Date(this.getFullYear(),0,1))/864e5)+1},b.getTimezone=function(){return
a.getTimezoneAbbreviation(this.getUTCOffset())},b.setTimezoneOffset=function(a){var
b=this.getTimezoneOffset(),c=-6*Number(a)/10;return
this.addMinutes(c-b)},b.setTimezone=function(b){return
this.setTimezoneOffset(a.getTimezoneOffset(b))},b.hasDaylightSavingTime=function(){return
Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()},b.isDaylightSavingTime=function(){return
Date.today().set({month:0,day:1}).getTimezoneOffset()!=this.getTimezoneOffset()},b.getUTCOffset=function(){var
a,b=-10*this.getTimezoneOffset()/6;return
0>b?(a=(b-1e4).toString(),a.charAt(0)+a.substr(2)):(a=(b+1e4).toString(),"+"+a.substr(1))},b.getElapsed=function(a){return(a||new
Date)-this},b.toISOString||(b.toISOString=function(){function a(a){return
10>a?"0"+a:a}return'"'+this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+'Z"'}),b._toString=b.toString,b.toString=function(a){var
b=this;if(a&&1==a.length){var
e=c.formatPatterns;switch(b.t=b.toString,a){case"d":return
b.t(e.shortDate);case"D":return
b.t(e.longDate);case"F":return
b.t(e.fullDateTime);case"m":return
b.t(e.monthDay);case"r":return
b.t(e.rfc1123);case"s":return
b.t(e.sortableDateTime);case"t":return
b.t(e.shortTime);case"T":return
b.t(e.longTime);case"u":return
b.t(e.universalSortableDateTime);case"y":return
b.t(e.yearMonth)}}var f=function(a){switch(1*a){case 1:case 21:case
31:return"st";case 2:case 22:return"nd";case 3:case
23:return"rd";default:return"th"}};return
a?a.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(a){if("\\"===a.charAt(0))return
a.replace("\\","");switch(b.h=b.getHours,a){case"hh":return
d(b.h()<13?0===b.h()?12:b.h():b.h()-12);case"h":return
b.h()<13?0===b.h()?12:b.h():b.h()-12;case"HH":return
d(b.h());case"H":return b.h();case"mm":return
d(b.getMinutes());case"m":return
b.getMinutes();case"ss":return
d(b.getSeconds());case"s":return
b.getSeconds();case"yyyy":return
d(b.getFullYear(),4);case"yy":return
d(b.getFullYear());case"dddd":return
c.dayNames[b.getDay()];case"ddd":return
c.abbreviatedDayNames[b.getDay()];case"dd":return
d(b.getDate());case"d":return
b.getDate();case"MMMM":return
c.monthNames[b.getMonth()];case"MMM":return
c.abbreviatedMonthNames[b.getMonth()];case"MM":return
d(b.getMonth()+1);case"M":return
b.getMonth()+1;case"t":return
b.h()<12?c.amDesignator.substring(0,1):c.pmDesignator.substring(0,1);case"tt":return
b.h()<12?c.amDesignator:c.pmDesignator;case"S":return
f(b.getDate());default:return a}}):this._toString()}}();