[ascoders] AW: Jahreszeiten (MX)

  • From: "Eric Singhartinger" <mailinglists@xxxxxxxxxxxxx>
  • To: <ascoders@xxxxxxxxxxxxx>
  • Date: Tue, 21 Oct 2003 13:50:25 +0200

*LOL* ... geile frage!
______________________________

Date.prototype.getSeason = function() {
        if (this.getMonth() >= 0 && this.getMonth() <= 2) return
('spring');
        else if (this.getMonth() >= 3 && this.getMonth() <= 5) return
('summer');
        else if (this.getMonth() >= 6 && this.getMonth() <= 8) return
('autumn');
        else if (this.getMonth() >= 9 && this.getMonth() <= 11) return
('winter');
}

myDate = new Date();
trace(myDate.getSeason());
______________________________

so vielleicht?


cheers,
eric.


> bin gerade total braindead:
> kann mir jemand verraten, wie man ganz simpel die jahreszeit 
> ausliest / erzeugt ?
> 
> 1stpixel

------------------------------------------------------
Archiv   : //www.freelists.org/archives/ascoders/
Optionen : //www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts: