rem: Date.prototype._orient=+1;Date.prototype._nth=null;Date.prototype._is=false;Number.prototype._dateElement="day";Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype.is=function(){this._is=true;return this;};Number.prototype.fromNow=Number.prototype.after=function(date){var c={};c[this._dateElement]=this;return((!date)?Date.now():date.clone()).add(c);};Number.prototype.ago=Number.prototype.before=function(date){var c={};c[this._dateElement]=this*-1;return((!date)?Date.now():date.clone()).add(c);};(function(){var $D=Date.prototype,$N=Number.prototype,_isSecond=false;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),nth=("final first second third forth fifth").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;} 
add: Date.prototype._orient=+1;Date.prototype._nth=null;Date.prototype._is=false;Number.prototype._dateElement="day";Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype.is=function(){this._is=true;return this;};Number.prototype.fromNow=Number.prototype.after=function(date){var c={};c[this._dateElement]=this;return((!date)?new Date():date.clone()).add(c);};Number.prototype.ago=Number.prototype.before=function(date){var c={};c[this._dateElement]=this*-1;return((!date)?new Date():date.clone()).add(c);};(function(){var $D=Date.prototype,$N=Number.prototype,_isSecond=false;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),nth=("final first second third forth fifth").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;} 
context: Date.prototype._orient=+1;Date.prototype._nth=null;Date.prototype._is=false;Number.prototype._dateElement="day";Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype.is=function(){this._is=true;return this;};Number.prototype.fromNow=Number.prototype.after=function(date){var c={};c[this._dateElement]=this;return((!date)?Date.now():date.clone()).add(c);};Number.prototype.ago=Number.prototype.before=function(date){var c={};c[this._dateElement]=this*-1;return((!date)?Date.now():date.clone()).add(c);};(function(){var $D=Date.prototype,$N=Number.prototype,_isSecond=false;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),nth=("final first second third forth fifth").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;}if(this._nth!==null){if(this._isSecond){this.addSeconds(this._orient*-1);}this._isSecond=false;var ntemp=this._nth;this._nth=null;var temp=this.clone().moveToLastDayOfMonth();this.moveToNthOccurrence(n,ntemp);if(this>temp){throw new RangeError(Date.getDayName(n)+" does not occur "+ntemp+" times in the month of "+temp.getMonthName()+" "+temp.getFullYear()+".");}return this;}return this.moveToDayOfWeek(n,this._orient);};};var sdf=function(n){return function(){var t=Date.today(),shift=n-t.getDay();if(n===0&&Date.CultureInfo.firstDayOfWeek===1&&t.getDay()!==0){shift=shift+7;}return t.addDays(shift);};};for(var i=0;i<dx.length;i++){Date[dx[i].toUpperCase()]=Date[dx[i].toUpperCase().substring(0,3)]=i;Date[dx[i]]=Date[dx[i].substring(0,3)]=sdf(i);$D[dx[i]]=$D[dx[i].substring(0,3)]=df(i);}var mf=function(n){return function(){if(this._is){this._is=false;return this.getMonth()===n;}return this.moveToMonth(n,this._orient);};};var smf=function(n){return function(){return Date.today().set({month:n,day:1});};};for(var j=0;j<mx.length;j++){Date[mx[j].toUpperCase()]=Date[mx[j].toUpperCase().substring(0,3)]=j;Date[mx[j]]=Date[mx[j].substring(0,3)]=smf(j);$D[mx[j]]=$D[mx[j].substring(0,3)]=mf(j);}var ef=function(j){return function(){if(this._isSecond){this._isSecond=false;return this;}if(j.substring(j.length-1)!="s"){j+="s";}return this["add"+j](this._orient);};};var nf=function(n){return function(){this._dateElement=n;return this;};};for(var k=0;k<px.length;k++){de=px[k].toLowerCase();$D[de]=$D[de+"s"]=ef(px[k]);$N[de]=$N[de+"s"]=nf(de);}var nthfn=function(n){return function(dayOfWeek){if(dayOfWeek||dayOfWeek===0){return this.moveToNthOccurrence(dayOfWeek,n);}this._nth=n;if(n===2&&(dayOfWeek===undefined||dayOfWeek===null)){this._isSecond=true;return this.addSeconds(this._orient);}return this;};};for(var l=0;l<nth.length;l++){$D[nth[l]]=(l===0)?nthfn(-1):nthfn(l);}}());Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ");};Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDate);};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDate);};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTime);};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTime);};Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};
meta: 1273	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1273/ce9d221037f084715f7fa60c66c04477b7391e33/date-sms-FI.js/buggy/build/date-sms-FI.js