Decode a DOS time to a string
#include <Date.au3>
_Date_Time_DOSTimeToStr ( $iDosTime )
$iDosTime | MS-DOS date, packed as follows: Bits 0- 4 Second divided by 2 Bits 5-10 Minute (0–59) Bits 11-15 Hour (0–23 on a 24-hour clock) |
_Date_Time_DOSDateTimeToStr, _Date_Time_DOSDateToStr
#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $g_idMemo
Example()
Func Example()
Local $sDate
; 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)
; Show FAT time
$sDate = _Date_Time_DOSTimeToStr(0x944a) ; 18:34:20
MemoWrite("FAT time .: " & $sDate)
; 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