Converts a local file time to a file time based on UTC
#include <Date.au3>
_Date_Time_LocalFileTimeToFileTime ( $tLocalTime )
$tLocalTime | a $tagFILETIME structure that specifies the local file time to be converted into a UTC based file time or a pointer to it. |
This function uses the current settings for the time zone and daylight saving time. Therefore, if it is daylight saving time, this function will take daylight saving time into account, even if the time you are converting is in standard time.
$tagFILETIME, _Date_Time_FileTimeToLocalFileTime
#include "Extras\HelpFileInternals.au3"
#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <WindowsStylesConstants.au3>
Example()
Func Example()
Local $tTime, $tLocal
; Create GUI
GUICreate("Time", 400, 300)
_MemoCreate(2, 2, 396, 296, $WS_VSCROLL)
GUISetState(@SW_SHOW)
; Show local date/time as UTC
$tTime = _Date_Time_EncodeFileTime(@MON, @MDAY, @YEAR, @HOUR, @MIN, @SEC)
$tLocal = _Date_Time_LocalFileTimeToFileTime($tTime)
_MemoWrite("Local date/time .: " & _Date_Time_FileTimeToStr($tLocal))
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>Example