Hoe te converteren naar GMT
Results 1 to 2 of 2

Thread: Hoe te converteren naar GMT

  1. #1
    Ik gebruik deze code. TimeUTC() geeft u GMT. Ingevoegde code #import kernel32.dll int GetTimeZoneInformation(int TZInfoArray#91;#93; #import #define TIME_ZONE_ID_UNKNOWN 0 #define TIME_ZONE_ID_STANDARD 1 #define TIME_ZONE_ID_DAYLIGHT 2 int TZInfoArray#91;43#93;; datetime TimeUTC() { return( TimeLocal() - TimeZone() * 60); } int TimeZone() { int ret = GetTimeZoneInformation(TZInfoArray); int vooringenomenheid = TZInfoArray#91;0#93;; if (ret == TIME_ZONE_ID_STANDARD) vooringenomenheid =TZInfoArray#91;21#93;; if (ret == TIME_ZONE_ID_DAYLIGHT) vooringenomenheid =TZInfoArray#91;42#93;; terugkeer(-bias); }

  2. #2
    Quote Originally Posted by ;
    Ik gebruik deze code. TimeUTC() geeft u GMT. [code]#import kernel32.dll int GetTimeZoneInformation(int TZInfoArray[]); #import #define TIME_ZONE_ID_UNKNOWN 0 #define TIME_ZONE_ID_STANDARD 1 #define TIME_ZONE_ID_DAYLIGHT 2 int TZInfoArray[43]; datetime TimeUTC() { return( TimeLocal() - TimeZone() * 60); } int TimeZone() { int ret = GetTimeZoneInformation(TZInfoArray); int vooringenomenheid = TZInfoArray[0]; if (ret == TIME_ZONE_ID_STANDARD) vooringenomenheid =TZInfoArray[21]; if (ret == TIME_ZONE_ID_DAYLIGHT) vooringenomenheid =TZInfoArray[42]; return(-vooringenomenheid);...
    werken als een tierelier

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.