Systemzeit über SYSTEMTIME auslesen

#include <winbase.h>

AnsiString __fastcall TMain::GetSystemTime()
{
    struct _SYSTEMTIME t;
    AnsiString sTimeString;

    GetSystemTime(&t);

    sTimeString = IntToStr(t.wYear) + IntToStr(t.wMonth) + IntToStr(t.wDayOfWeek) + IntToStr(t.wDay) + IntToStr(t.wHour) + IntToStr(t.wMinute) + IntToStr(t.wSecond) + IntToStr(t.wMilliseconds);
    return sTimeString
}