Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <stdio.h>
- //int ConvertUTCToLocalTime(SYSTEMTIME *SysTime,SYSTEMTIME *LocalTime )
- //{
- //
- //
- //
- //}
- int main()
- {
- SYSTEMTIME st, lt;
- int retval;
- TIME_ZONE_INFORMATION TimeZoneInfo;
- GetTimeZoneInformation( &TimeZoneInfo );
- GetSystemTime(&st);
- retval=SystemTimeToTzSpecificLocalTime(&TimeZoneInfo,&st,<);
- if(retval)
- {
- printf("The function has succeeded = %d \n",retval);
- }else
- {
- printf("The function has failed = %d \n",retval);
- }
- //GetLocalTime(<);
- printf("The system time is: %02d:%02d\n", st.wHour, st.wMinute);
- printf(" The local time is: %02d:%02d\n", lt.wHour, lt.wMinute);
- /*ConvertUTCToLocalTime(&st,<);*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement