Ich habe diesen Code, der in Freepascal unter Windows funktioniert und müssen es Linux zu übersetzen, aber ich bin ganz auf die Zeitzone Bias Wert verloren:Zeitzone Code Übersetzung von Windows auf Linux in Freepascal
function DateTimeToInternetTime(const aDateTime: TDateTime): String;
{$IFDEF WIN32}
var
LocalTimeZone: TTimeZoneInformation;
{$ENDIF ~WIN32}
begin
{$IFDEF WIN32}
// eg. Sun, 06 Nov 1994 08:49:37 GMT RFC 822, updated by 1123
Result := FormatDateTime('ddd, dd mmm yyyy hh:nn:ss', aDateTime);
// Get the Local Time Zone Bias and report as GMT +/-Bias
GetTimeZoneInformation(LocalTimeZone);
Result := Result + 'GMT ' + IntToStr(LocalTimeZone.Bias div 60);
{$ELSE}
// !!!! Here I need the above code translated !!!!
Result := 'Sat, 06 Jun 2009 18:00:00 GMT 0000';
{$ENDIF ~WIN32}
end;
Danke Kumpel, du bist ein Star. Du hast die Beute;) –
woo hoo! Die Online-Referenz ist hier: http://www.freepascal.org/docs-html/rtl/unix/fpgettimeofday.html – russau
So bekommt er die Beute für die Verknüpfung mit meiner Antwort? –