Mailinglisten-Archive |
Hallo
Ich habe hier Unix und Windows,
Wie gesagt dies ist KEIN Y2K Problem, sondern nach POSIX.
Aus time.h
struct tm {
int tm_sec; /* seconds after the minute [0-60] */
int tm_min; /* minutes after the hour [0-59] */
int tm_hour; /* hours since midnight [0-23] */
int tm_mday; /* day of the month [1-31] */
int tm_mon; /* months since January [0-11] */
int tm_year; /* years since 1900 */ <=== Hier
wie man sieht Jahre seit 1900
int tm_wday; /* days since Sunday [0-6] */
int tm_yday; /* days since January 1 [0-365] */
int tm_isdst; /* Daylight Savings Time flag */
long tm_gmtoff; /* offset from CUT in seconds */
char *tm_zone; /* timezone abbreviation */
};
Das Problem ist, viele haben angenommen, es handle sich dabei um Jahre
in 2 Stellen also nach 99 kommt 00
aber es sind ja schliesslich 100 Jahre seit 1900 ..
Gruss
Erich (ab heute lese ich den Standard besser !!!!!! )
> -----Original Message-----
> From: php-admin_(at)_solix.wiso.Uni-Koeln.DE
> [mailto:php-admin_(at)_solix.wiso.Uni-Koeln.DE]On Behalf Of gstammw
> Sent: Sunday, January 02, 2000 9:55 PM
> To: php_(at)_solix.wiso.Uni-Koeln.DE
> Subject: Re: [php] MYSQL hat Y2K-Problem (Frank Kandziora)
>
>
> .. aber das problem tritt doch nur under windoof auf, oder ?
>
> cu,
> gunther
> ----- Original Message -----
> From: "Hohermuth Erich" <eh_(at)_profzone.ch>
> To: <php_(at)_solix.wiso.Uni-Koeln.DE>
> Sent: Sunday, January 02, 2000 9:48 PM
> Subject: RE: [php] MYSQL hat Y2K-Problem (Frank Kandziora)
>
>
> > Hallo
> >
> > Nicht nur mysql hat dieses Problem sondern alles was mit
> time.h gemacht
> > wurde..
> >
> > Betroffen ist auch gmtime() und localtime()
> >
> > Nach dem standard ist das Jashr nicht 2 stellig sonder 4 stellig,
> > jedoch gezaehlt vom Jahre 1900
> > leider haben dies viele programmierer falsch verstanden und
> einfach 2
> > stellen angenommen. Richtig waere jahresdatum + 1900 also
> sprich 1900 +
> > 99 = 1999 oder 1900 + 100 = 2000 ...
> >
> > Ich habe aus diesem grund heute 4 perlscripte korrigiert, 1
> eigener und
> > 3 andere (ich habe es damals auch nicht gelesen ;-) )
> >
> >
> > Gruss
> >
> > Erich
> >
> > > -----Original Message-----
> > > From: php-admin_(at)_solix.wiso.Uni-Koeln.DE
> > > [mailto:php-admin_(at)_solix.wiso.Uni-Koeln.DE]On Behalf Of
> > > Kandziora_(at)_aol.com
> > > Sent: Sunday, January 02, 2000 9:17 PM
> > > To: php_(at)_solix.wiso.Uni-Koeln.DE
> > > Subject: [php] MYSQL hat Y2K-Problem (Frank Kandziora)
> > >
> > >
> > > Also Leute,
> > > dass ist leicht off topic - aber vielleicht: Mysql hat ein
> > > Jahr 2000 Problem!
> > > Es folgt ein Schnappschuss aus der log.file von MySql
> > > (c:\mysql\data\mysql.log - Pfad unter win95):
> > >
> > > 1999 - alles o.K. (schaut unter "time" - da steht 991225):
> > > --------------------------------------------------------------
> > > ----------------
> > > ---------------------------------
> > > "C:\MYSQL\BIN\MYSQLD.EXE, Version: 3.21.29a-gamma-debug-log,
> > > started with:
> > > Tcp port: 3306 Unix socket: /tmp/mysql.sock
> > > Time Id Command Argument
> > > 991225 10:40:33 1 Connect root_(at)_localhost on
> > > 1 Shutdown "
> > > --------------------------------------------------------------
> > > ----------------
> > > ---------
> > > 2. Januar 2000 - achtet auf das Datum- da steht 1000102:
> > > --------------------------------------------------------------
> > > ----------------
> > > ----------
> > > "C:\MYSQL\BIN\MYSQLD.EXE, Version: 3.21.29a-gamma-debug-log,
> > > started with:
> > > Tcp port: 3306 Unix socket: /tmp/mysql.sock
> > > Time Id Command Argument
> > > 1000102 11:39:4 1 Connect root_(at)_localhost on
> > > 1 Shutdown"
> > > --------------------------------------------------------------
> > > ----------------
> > > ---------------------------------------
> > > Das ist der 2.1.19100 - woll?.
> > > Prinzipiell falsch - oder?, Frank
> > >
> > > --
> > > ** Durchgehend geöffnet: http://www.php-center.de **
> > > Die PHP-Liste: mailto:php_(at)_infosoc.uni-koeln.de
> > > http://infosoc.uni-koeln.de/mailman/listinfo/php
> > >
> >
> >
> > --
> > ** Durchgehend geöffnet: http://www.php-center.de **
> > Die PHP-Liste: mailto:php_(at)_infosoc.uni-koeln.de
> > http://infosoc.uni-koeln.de/mailman/listinfo/php
> >
>
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_infosoc.uni-koeln.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
>
php::bar PHP Wiki - Listenarchive