English
Source / code snippets

Datumuhrzeit Lesensetzen

 
date/Uhrzeit reading/settle of M. Heinemann

CompileMarkSeparation
------------
Definitionen
------------
Def GetLocalTime(1) !"kernel32","GetLocalTime"
Def SetLocalTime(1) !"kernel32","SetLocalTime"
-------------
Deklarationen
-------------
declare Datum#
-----------------
Bereich erstellen
-----------------
dim Datum#,16
----------
Proceduren
----------

proc set_local_date

    parameters Jahr%, Monat%, Tag%
    GetLocalTime(Datum#)
    word Datum#, 0 = Jahr%
    word Datum#, 2 = Monat%
    word Datum#, 6 = Tag%
    SetLocalTime(Datum#)

endproc

proc set_local_time

    parameters Stunde%, Minute%, Sekunde%, Millisekunde%
    GetLocalTime(Datum#)
    word Datum#, 8 = Stunde%
    word Datum#, 10 = Minute%
    word Datum#, 12 = Sekunde%
    word Datum#, 14 = Millisekunde%
    SetLocalTime(Datum#)

endproc

-------------
Hauptprogramm
-------------
Datum setzen
set_local_date 2000, 01, 02
Zeit setzen
set_local_time 01,02,03,04
Bereich freigeben
dispose Datum#
Ende
../Function-References/XProfan/end/'>end
 
05/17/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.031 Views

Untitledvor 0 min.
H.Brill10/09/21
Langer01/30/21
iF09/24/20
Erasmus.Herold01/02/20
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie