TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: George White
from: Gerry Danen
date: 1998-09-28 04:54:30
subject: Division by time?!

GW> You have to do it yourself :-(.

 GW> t.ti_sec = t.ti_sec + 61;
 GW> if (60 <= t.ti_sec)
 GW> {
 GW> t.ti_sec -= 60;
 GW> t.ti_min += 1;
 GW> if (60 <= t.ti_min)
 GW> {
 GW> t.ti_min -= 60;
 GW> t.ti_hour += 1;
 GW> if (24 <= t.ti_hour)
 GW> t.ti_hour -= 24;
 GW> }
 GW> }

Doesn't that structure also hold day, month, etc.?

Gerry Danen === email gdanen{at}istar.ca === ICQ 17897683
            === home page http://home.istar.ca/~gdanen
1 year and 95 days until January 1, 2000.

... Any sufficiently advanced bug will become a feature.
--- Blue Wave/386 v2.30
* Origin: *Circular Ruins/2.1* (1:342/703)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 810 639/252
SEEN-BY: 670/218
@PATH: 342/5014 61 140/1 12/12 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.