Article View: borland.public.cppbuilder.nativeapi
Article #13977Re: Set System Date/Time
From: Eyyub Volkan �ektimur
Date: Mon, 01 Sep 2003 10:38
Date: Mon, 01 Sep 2003 10:38
47 lines
2191 bytes
2191 bytes
because of your time zone, SetSystemTime wants DateTime in UTC (universal Time) format so you need to use "SetLocalTime" that wants DateTime in your local time zone format. -------------------------------------------------------- also u can look at to following functions that are implemented in WinApi; CompareFileTime DosDateTimeToFileTime FileTimeToDosDateTime FileTimeToLocalFileTime FileTimeToSystemTime GetFileTime GetLocalTime GetSystemTime GetSystemTimeAdjustment GetSystemTimeAsFileTime GetTickCount GetTimeZoneInformation LocalFileTimeToFileTime SetFileTime SetLocalTime SetSystemTime SetSystemTimeAdjustment SetTimeZoneInformation SystemTimeToFileTime SystemTimeToTzSpecificLocalTime "Obsolete Functions" GetCurrentTime ___________________________________ Eyyub Volkan �ektimur Proya Software & Trade Inc. Head of Core Development Department "Mike Shultz" <no@where.com> wrote in message news:3f531e6c$1@newsgroups.borland.com... > > No there are no problems with int to WORD conversion. Simply on my WinXP > Pro SP1 it sets time 2 (thow) hours more then I give to the function. How is > this possible?? > >
Technical Details
Message-ID:
<3f5321b2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f530b12$1@newsgroups.borland.com> <3f53139b@newsgroups.borland.com> <3f531c07@newsgroups.borland.com> <3f531e6c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,c8dcc4ffbd3f4cee X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-01 03:39:18 PST From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f530b12$1@newsgroups.borland.com> <3f53139b@newsgroups.borland.com> <3f531c07@newsgroups.borland.com> <3f531e6c$1@newsgroups.borland.com> Subject: Re: Set System Date/Time Date: Mon, 1 Sep 2003 13:38:36 +0300 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.232.9.4 Message-ID: <3f5321b2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062412722 213.232.9.4 (1 Sep 2003 03:38:42 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail