## Re: [Sdcc-user] bug in mktime() function

 Re: [Sdcc-user] bug in mktime() function From: Lim Raj R - 2004-03-09 15:25:01 ```This is what I learned. "BODMAS Rule" BO - Brackets Off (Paranthesis) D - Division M - Multiplication A - Addition S - Subtraction My elementary maths did not have 'power' . ;-) HSHK wrote: > In America it is... > > Please Excuse My Dear Aunt Sally... > > P = Parentheses > E = Exponential (powers) > M = Multiply > D = Divide > A = Add > S = Subtract. > > Bill > > *********** REPLY SEPARATOR *********** > > On 3/9/2004 at 3:26 PM Bert Thomas wrote: > > >>Bernhard Held wrote: >> >> >>>>seconds+= (timeptr->tm_mday-1)*60*60*24L; >>> >>>Fixed in time.c 1.8. Thanks for the report! >> >>Great! >> >> >>>>And since Johan wrote this, Johan, you should remember that mr Van >> >>Dale is >> >>>still waiting for his answer! ;-) >>>Hmm. What was his question? >> >>In dutch there is this trick to remember the priority of mathematical >>operators: >> >>(M)eneer (V)an (D)ale (W) wacht (O)p (A)ntwoord >> >>((M)achtverheffen -> raising to the power) >>((V)ermenigvuldigen -> multiplying) >>((D)elen -> divide) >>((W)orteltrekken -> root) >>((O)ptellen -> adding) >>((A)ftrekken -> subtracting) >> >>This is basically thought to anyone at elementary school. The sentence >>translates to english as "Mr. Van Dale is waiting for an answer". >> >>Bert >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>Sdcc-user mailing list >>Sdcc-user@... >>https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ```

 [Sdcc-user] bug in mktime() function From: Bert Thomas - 2004-03-08 20:31:39 ```Hi All, I found a bug in the mktime() function in the runtime library: seconds+= timeptr->tm_mday-1*60*60*24L; should be: seconds+= (timeptr->tm_mday-1)*60*60*24L; And since Johan wrote this, Johan, you should remember that mr Van Dale is still waiting for his answer! ;-) Bert ```
 Re: [Sdcc-user] bug in mktime() function From: Bernhard Held - 2004-03-09 08:53:02 ```> I found a bug in the mktime() function in the runtime library: > > seconds+= timeptr->tm_mday-1*60*60*24L; > > should be: > > seconds+= (timeptr->tm_mday-1)*60*60*24L; Fixed in time.c 1.8. Thanks for the report! > And since Johan wrote this, Johan, you should remember that mr Van Dale is still waiting for his answer! ;-) Hmm. What was his question? Bernhard ```
 Re: [Sdcc-user] bug in mktime() function From: Bert Thomas - 2004-03-09 14:45:06 ```Bernhard Held wrote: > > seconds+= (timeptr->tm_mday-1)*60*60*24L; > Fixed in time.c 1.8. Thanks for the report! Great! > > And since Johan wrote this, Johan, you should remember that mr Van Dale is > still waiting for his answer! ;-) > Hmm. What was his question? In dutch there is this trick to remember the priority of mathematical operators: (M)eneer (V)an (D)ale (W) wacht (O)p (A)ntwoord ((M)achtverheffen -> raising to the power) ((V)ermenigvuldigen -> multiplying) ((D)elen -> divide) ((W)orteltrekken -> root) ((O)ptellen -> adding) ((A)ftrekken -> subtracting) This is basically thought to anyone at elementary school. The sentence translates to english as "Mr. Van Dale is waiting for an answer". Bert ```
 Re: [Sdcc-user] bug in mktime() function From: HSHK - 2004-03-09 14:55:52 ```In America it is... Please Excuse My Dear Aunt Sally... P = Parentheses E = Exponential (powers) M = Multiply D = Divide A = Add S = Subtract. Bill *********** REPLY SEPARATOR *********** On 3/9/2004 at 3:26 PM Bert Thomas wrote: >Bernhard Held wrote: > >> > seconds+= (timeptr->tm_mday-1)*60*60*24L; >> Fixed in time.c 1.8. Thanks for the report! > >Great! > >> > And since Johan wrote this, Johan, you should remember that mr Van >Dale is >> still waiting for his answer! ;-) >> Hmm. What was his question? > >In dutch there is this trick to remember the priority of mathematical >operators: > >(M)eneer (V)an (D)ale (W) wacht (O)p (A)ntwoord > >((M)achtverheffen -> raising to the power) >((V)ermenigvuldigen -> multiplying) >((D)elen -> divide) >((W)orteltrekken -> root) >((O)ptellen -> adding) >((A)ftrekken -> subtracting) > >This is basically thought to anyone at elementary school. The sentence >translates to english as "Mr. Van Dale is waiting for an answer". > >Bert > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Sdcc-user mailing list >Sdcc-user@... >https://lists.sourceforge.net/lists/listinfo/sdcc-user ```
 Re: [Sdcc-user] bug in mktime() function From: Lim Raj R - 2004-03-09 15:25:01 ```This is what I learned. "BODMAS Rule" BO - Brackets Off (Paranthesis) D - Division M - Multiplication A - Addition S - Subtraction My elementary maths did not have 'power' . ;-) HSHK wrote: > In America it is... > > Please Excuse My Dear Aunt Sally... > > P = Parentheses > E = Exponential (powers) > M = Multiply > D = Divide > A = Add > S = Subtract. > > Bill > > *********** REPLY SEPARATOR *********** > > On 3/9/2004 at 3:26 PM Bert Thomas wrote: > > >>Bernhard Held wrote: >> >> >>>>seconds+= (timeptr->tm_mday-1)*60*60*24L; >>> >>>Fixed in time.c 1.8. Thanks for the report! >> >>Great! >> >> >>>>And since Johan wrote this, Johan, you should remember that mr Van >> >>Dale is >> >>>still waiting for his answer! ;-) >>>Hmm. What was his question? >> >>In dutch there is this trick to remember the priority of mathematical >>operators: >> >>(M)eneer (V)an (D)ale (W) wacht (O)p (A)ntwoord >> >>((M)achtverheffen -> raising to the power) >>((V)ermenigvuldigen -> multiplying) >>((D)elen -> divide) >>((W)orteltrekken -> root) >>((O)ptellen -> adding) >>((A)ftrekken -> subtracting) >> >>This is basically thought to anyone at elementary school. The sentence >>translates to english as "Mr. Van Dale is waiting for an answer". >> >>Bert >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>Sdcc-user mailing list >>Sdcc-user@... >>https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ```
 Re: [Sdcc-user] bug in mktime() function From: Jean-Paul - 2004-03-09 15:38:28 ```Perhaps someone could tell us whether Aunt Sally means something=20 particular, as do Lady Jane and John Thomas, for example... Non Dutch speaking people could be glad to learn that Van Dale is known a= s=20 the name of Dutch publishers of dictionaries. You could translate it as=20 Harraps or Collins. On Tue, 09 Mar 2004 09:33:59 -0500, HSHK wrote: > In America it is... > > Please Excuse My Dear Aunt Sally... > > P =3D Parentheses > E =3D Exponential (powers) > M =3D Multiply > D =3D Divide > A =3D Add > S =3D Subtract. > > Bill > > *********** REPLY SEPARATOR *********** > > On 3/9/2004 at 3:26 PM Bert Thomas wrote: > >> Bernhard Held wrote: >> >>> > seconds+=3D (timeptr->tm_mday-1)*60*60*24L; >>> Fixed in time.c 1.8. Thanks for the report! >> >> Great! >> >>> > And since Johan wrote this, Johan, you should remember that mr Van >> Dale is >>> still waiting for his answer! ;-) >>> Hmm. What was his question? >> >> In dutch there is this trick to remember the priority of mathematical >> operators: >> >> (M)eneer (V)an (D)ale (W) wacht (O)p (A)ntwoord >> >> ((M)achtverheffen -> raising to the power) >> ((V)ermenigvuldigen -> multiplying) >> ((D)elen -> divide) >> ((W)orteltrekken -> root) >> ((O)ptellen -> adding) >> ((A)ftrekken -> subtracting) >> >> This is basically thought to anyone at elementary school. The sentence >> translates to english as "Mr. Van Dale is waiting for an answer". >> >> Bert >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3D= click >> _______________________________________________ >> Sdcc-user mailing list >> Sdcc-user@... >> https://lists.sourceforge.net/lists/listinfo/sdcc-user > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > --=20 NEVER jump into a LOOP! ```