# Function Reference

# _Date_Time_GetSystemTimeAsFileTime

Retrieves the current system date and time expressed in UTC

#include <Date.au3>
_Date_Time_GetSystemTimeAsFileTime ( )

## Return Value

Returns a $tagFILETIME structure with the current system date and time.

## Related

$tagFILETIME

## Example

    #include "Extras\HelpFileInternals.au3"

    #include <Date.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsStylesConstants.au3>

    Example()

    Func Example()
        Local $tTime

        ; Create GUI
        GUICreate("Time", 400, 300)
        _MemoCreate(2, 2, 396, 296, $WS_VSCROLL)
        GUISetState(@SW_SHOW)

        ; Get system time
        $tTime = _Date_Time_GetSystemTimeAsFileTime()

        _MemoWrite("System time .: " & _Date_Time_FileTimeToStr($tTime))

        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
    EndFunc   ;==>Example