Converts MS-DOS date and time values to a file time
#include <Date.au3>
_Date_Time_FileTimeToDOSDateTime ( $tFileTime )
$tFileTime | a $tagFILETIME structure containing the file time to convert to MS-DOS format or a pointer to it |
$tagFILETIME, _Date_Time_DOSDateTimeToFileTime, _Date_Time_FileTimeToLocalFileTime, _Date_Time_FileTimeToSystemTime
#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $g_idMemo
Example()
Func Example()
Local $tFile, $aDOS
; Create GUI
GUICreate("Time", 400, 300)
$g_idMemo = GUICtrlCreateEdit("", 2, 2, 396, 296, $WS_VSCROLL)
GUICtrlSetFont($g_idMemo, 9, 400, 0, "Courier New")
GUISetState(@SW_SHOW)
; Encode a file time
$tFile = _Date_Time_EncodeFileTime(@MON, @MDAY, @YEAR, @HOUR, @MIN, @SEC)
$aDOS = _Date_Time_FileTimeToDOSDateTime($tFile)
MemoWrite("DOS date .: 0x" & Hex($aDOS[0], 4))
MemoWrite("DOS time .: 0x" & Hex($aDOS[1], 4))
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>Example
; Write a line to the memo control
Func MemoWrite($sMessage)
GUICtrlSetData($g_idMemo, $sMessage & @CRLF, 1)
EndFunc ;==>MemoWrite