Article View: borland.public.cppbuilder.nativeapi
Article #2257Re: NetRemoteTOD to Get Server Time
From: Bob Gonder
Date: Sat, 17 Mar 2007 20:21
Date: Sat, 17 Mar 2007 20:21
11 lines
1250 bytes
1250 bytes
D Ray wrote: >Is there some straightforward way of adjusting the results of >NetRemoteTOD so that it always works -- Don't know if this _always_ works, but should be pretty close NetRemoteTOD( URL, &tod ) UTC_hours = tod->tod_hours +( tod-> tod_timezone/60 ) GetTimeZoneInformation( &tzi ); Local Time = UTC_hours - ( tzi.Bias/60 )
Technical Details
Message-ID:
<esiov2t822j0k56pg1ke5ekulrcl3tiqfv@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45fc2a82@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9a57de6d3de75d9f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: NetRemoteTOD to Get Server Time Date: Sat, 17 Mar 2007 13:21:34 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <esiov2t822j0k56pg1ke5ekulrcl3tiqfv@4ax.com> References: <45fc2a82@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.145.18 X-Trace: newsgroups.borland.com 1174162892 67.77.145.18 (17 Mar 2007 13:21:32 -0800) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail