在C++builder中UCT如何转换datetiem

在C++builder中UCT怎么转换datetiem?
在C++builder中UCT怎么转换datetiem

------解决方案--------------------
用indy吧

#include <IDGLOBAL.hpp>
System::TDateTime __fastcall GMTToLocalDateTime(AnsiString S);
------解决方案--------------------
或者直接用API

GetTimeZoneInformation(TIME_ZONE_INFORMATION* tzi);
WINBASEAPI
DWORD
WINAPI
GetTimeZoneInformation(
    OUT LPTIME_ZONE_INFORMATION lpTimeZoneInformation
    );

// lpTimeZoneInformation.Bias 就是时差
------解决方案--------------------
GMTToLocalDateTime 需要传入一个UTC日期时间格式字符串做参数

    TDateTime dt = GMTToLocalDateTime("Sun 15 Oct 2000 12:42:15 -0500");
    ShowMessage(dt.CurrentDate());

cb6 + indy9
------解决方案--------------------
FormatDateTime 格式化为字串
http://blog.****.net/happybuttom/article/details/2844028