AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi Wie ermittle ich, welche Zeitzone (Sommer/Winter) z.Zt. ist?
Thema durchsuchen
Ansicht
Themen-Optionen

Wie ermittle ich, welche Zeitzone (Sommer/Winter) z.Zt. ist?

Ein Thema von Framige · begonnen am 4. Mai 2003 · letzter Beitrag vom 26. Mär 2008
 
Benutzerbild von Specialwork
Specialwork

Registriert seit: 10. Jan 2003
Ort: Schwall
71 Beiträge
 
Delphi 8 Professional
 
#5
  Alt 4. Mai 2003, 22:55
Hallo Framige,

Das geht so !

Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Memo1: TMemo;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
    procedure Logg(Value: String);
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Logg(Value: String);
begin
  Memo1.Lines.Add(Value);
end;

procedure TForm1.Button1Click(Sender: TObject);
var TimeZoneInformation: TTimeZoneInformation;
begin
  GetTimeZoneInformation(TimeZoneInformation);
  
  Logg(inttostr(TimeZoneInformation.Bias));
  Logg(String(TimeZoneInformation.StandardName));
  Logg(String(TimeZoneInformation.DaylightName));

  // ... usw.
end;

end.

Gruß, Tom

Thomas van Veen
Es gibt keine Probleme, nur Lösungen, auf die man nicht gleich kommt !
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:24 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz