[ascoders] Re: AW: Jahreszeiten (MX)

  • From: 1stPIXEL <1stpixel@xxxxxxxxxxxxxxx>
  • To: ascoders@xxxxxxxxxxxxx
  • Date: Tue, 21 Oct 2003 13:58:29 +0200

sorry, aber ich sagte ja: braindead!

danke!

1stpixel

Eric Singhartinger wrote:

*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
------------------------------------------------------



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

Other related posts: