English
Forum

GetLocalTime/GetSystemTime

 

Jörg
Sellmeyer
who can tell because, Why the two functions different times zurückliefern?
at least do tappt im dunkeln the by me - The Stundenzahl is with GetSystemTime circa two niedriger.
CompileMarkSeparation
Declare Day$[7],Month$[12]
Day$[0] = Sonntag
Day$[1] = Montag
Day$[2] = Diestag
Day$[3] = Mittwoch
Day$[4] = Donnerstag
Day$[5] = Freitag
Day$[6] = Samstag
Month$[0] = Januar
Month$[1] = Februar
Month$[2] = März
Month$[3] = April
Month$[4] = Mai
Month$[5] = Juni
Month$[6] = Juli
Month$[7] = August
Month$[8] = September
Month$[9] = Oktober
Month$[10] = November
Month$[11] = Dezember
Declare TimeStruct#
Struct _TimeStruct = wYear%,
wMonth%,
wDayOfWeek%,
wDay%,
wHour%,
wMinute%,
wSecond%,
wMilliseconds%
Dim TimeStruct#,_TimeStruct
Def GetSystemTime(1) !Kernel32,GetSystemTime
Def GetLocalTime(1) !Kernel32,GetLocalTime

Proc Ausgabe

    With TimeStruct#

        Print Day$[.wDayOfWeek%] +  der   + Str$(.wDay%) + .  + Month$[.wMonth% - 1] +   + Str$(.wYear%)
        Print Str$(.wHour%) + : + Str$(.wMinute%) + : + Str$(.wSecond%) + : + Str$(.wMilliseconds%)

    EndWith

EndProc

GetSystemTime(TimeStruct#)
Ausgabe
GetLocalTime(TimeStruct#)
Ausgabe
WaitInput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
05/03/07  
 




Detlef
Tussing
Hello Jörg
with Date Gibts The Statement
the with GetLocaltime The Zeitzonen-Settings and the local sommerzeit/winterzeit beruecksichtigt. becomes.
 
Gruß Detlef Tussing
Windows XP, XProfan 10
05/03/07  
 




Dieter
Zornow
i think The Sytemzeit is still GMT by me in Bangkok is these Time circa 7 hours back.

greetings from Bangkok

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
05/03/07  
 




Detlef
Tussing
have you got because In the Control Panel with date Uhrzeit too Bangkok tuned, because then are it 7 hours diverenz To mindest by me.
Schalte but again circa, I Yes not Bangkok be.
 
Gruß Detlef Tussing
Windows XP, XProfan 10
05/03/07  
 




Jörg
Sellmeyer
Yes - be in the meantime yourself on it come - but nevertheless: thanks.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
05/03/07  
 




Dieter
Zornow
naturally have The The Zeitzone for Bangkok tuned, therefore gives getlocaltime
The actually Time in Bangkok back and Getsystemtime - 7 hours to Bangkokzeit
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
05/03/07  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

857 Views

Untitledvor 0 min.
Michael W.08/29/20

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie