Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#6

AW: TimeDateStamp im IMAGE_FILE_HEADER unterschiedlich

  Alt 15. Mär 2015, 13:34
Kleines Testprogramm:
Anzeige in Deutschland:
Current universal time is: 15.03.2015 13:38:25
15.03.2015 14:38:25 (GMT+01)
Current time is Standard.

Was zeigt es bei Dir an?

Delphi-Quellcode:
program dates;

{$APPTYPE CONSOLE}
uses
  SysUtils, DateUtils;

begin
  { Writes the current universal time }
  WriteLn('Current universal time is: ',
  DateTimeToStr(TTimeZone.Local.ToUniversalTime(Now)));

  { Write the current date/time along with the abbreviation }
  WriteLn(
    Format('%s (%s)', [DateTimeToStr(Now),
      TTimeZone.Local.GetAbbreviation(Now, true)]));

  { Simply write the type of the current time }
  case TTimeZone.Local.GetLocalTimeType(Now) of
    lttStandard: WriteLn('Current time is Standard.');

    lttDaylight: WriteLn('Current time is Daylight.');

    lttInvalid: WriteLn('This should never happen when the time is coming from the system.');

    lttAmbiguous:WriteLn('Current time is ambiguous.');
  end;
  Readln;
end.

Geändert von hathor (15. Mär 2015 um 13:39 Uhr)
  Mit Zitat antworten Zitat