Decode a file time to a date/time string
#include <Date.au3>
_Date_Time_FileTimeToStr ( ByRef $tFileTime [, $iFmt = 0] )
$tFileTime | $tagFILETIME structure |
$iFmt | [optional] 0 returns mm/dd/yyyy hh:mm:ss (Default) 1 returns yyyy/mm/dd hh:mm:ss |
#include "Extras\HelpFileInternals.au3"
#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <WindowsStylesConstants.au3>
Example()
Func Example()
Local $tFile
; Create GUI
GUICreate("Time", 400, 300)
_MemoCreate(2, 2, 396, 296, $WS_VSCROLL)
GUISetState(@SW_SHOW)
; Encode a file time
$tFile = _Date_Time_EncodeFileTime(@MON, @MDAY, @YEAR, @HOUR, @MIN, @SEC)
_MemoWrite("Current date/time .: " & _Date_Time_FileTimeToStr($tFile))
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>Example