Ariane Soft PPL2 Pocket Programming DataMite
  #11  
Old 06-12-2010, 06:06 AM
Unrealbots Unrealbots is offline
Junior Member
 
Join Date: Feb 2010
Posts: 14
Default The Function perhaps?

If someone could please help me learn this function, I think this maybe the one that will work. Any helpers out there?



--------------------------------------------------------------------------
SystemTimeToTzSpecificLocalTime Function

Converts a time in Coordinated Universal Time (UTC) to a specified time zone's corresponding local time.

================================================== =======
Syntax


BOOL WINAPI SystemTimeToTzSpecificLocalTime(
__in_opt LPTIME_ZONE_INFORMATION lpTimeZone,
__in LPSYSTEMTIME lpUniversalTime,
__out LPSYSTEMTIME lpLocalTime
);

================================================== =======
C# syntax

[DllImport("kernel32.dll", SetLastError=true)]
private static extern long SystemTimeToTzSpecificLocalTime(IntPtr lpTimeZoneInformation, ref SYSTEMTIME lpUniversalTime, ref SYSTEMTIME lpLocalTime);

================================================== =======
Parameters

lpTimeZone [in, optional]

A pointer to a TIME_ZONE_INFORMATION structure that specifies the time zone of interest.

If lpTimeZone is NULL, the function uses the currently active time zone.
lpUniversalTime [in]

A pointer to a SYSTEMTIME structure that specifies the UTC time to be converted. The function converts this universal time to the specified time zone's corresponding local time.
lpLocalTime [out]

A pointer to a SYSTEMTIME structure that receives the local time.

Return Value

If the function succeeds, the return value is nonzero, and the function sets the members of the SYSTEMTIME structure pointed to by lpLocalTime to the appropriate local time values.

If the function fails, the return value is zero. To get extended error information, call GetLastError.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd