TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Eric Cartmel
from: Neil Heller
date: 1998-10-18 11:02:00
subject: DIVISION BY TIME?!

EC> gettime(&t);
EC>  
EC> t.ti_sec = t.ti_sec + 61;
EC>  
EC> In the example above the minutes would be incimented by 1 and
EC> there would be a remainder in the seconds but my result would be
EC> something ike;
EC>  
EC> The minutes are now 1: and the seconds are now 72:


To have the "seconds" show 12 instead if 72 just do modulus arithmetic.

 * KWQ/2 1.2i *

--- FLAME v1.1
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204)
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: 161/204 42 215/34 270/101 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™.