delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/07/07:48:52

From: Radical DOT NetSurfer AT delorie DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Calculating Time Zones
Date: Sun, 07 Oct 2001 07:29:28 -0400
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <ioe0stkcg3k8cijqgqcop5qrf3km8l0hu7@4ax.com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
X-Complaints-To: newsabuse AT supernews DOT com
Lines: 44
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Using DJGPP 2.03/GCC 2.95.3, I want to create a 
program that does nothing more than report what 

1) my local time is

2) and the local times of friends living around the world

3) calculating the difference between time zones

4) setting alarms for each unique time zone, etc.

Obtaining local time should be easy enough...

How difficult will it be to add and subtract several hours
from my local time, in order to get accurate obtain times
elsewhere in the world...

such that I will be able to use    difftime()    to see the
difference, be able to set alarms when a certain time zone
enters a specific time (hey my friend is now online ;-),

alarm_set (+/- offset_to_time_zone);

where "offset_to_time_zone" is added/subbed from
my local_time, and we simply wait for a count down,
or perhaps a match at least...

and things like this...

Would there already be functions that handle World zones already?

Thanks for any advice, comments....

Code snippets always welcomed too.... ;-)

email: radsmail AT juno DOT com
http://members.tripod.com/~RadSurfer/

Join us on Yahoo at:
http://groups.yahoo.com/group/BorlandCPPBuilder
for informal discussions about all versions of C++Builder...
[Computer programming for Windows 95, and Console32]
(you must be a Yahoo member to join)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019