English
Forum

new System-Date settle

 
- Page 1 -



Erasmus.Herold
Hallöchen ...

i want the windows System-Date with XProfan differently settle.
(z.B. on the 20.12.2019)

try me over: dt("setDateTime", y, m, d, h, n, s, ms)

have but none success.
Who an example for me?

Greeting and Thanks
Erasmus
 
01/02/20  
 



« this Posting watts as Solution marked. »


Ernst
Maybe helps this
' example reading and settle System-Date and System-Time. for Profan 6.6.
' Version 2.0  15.5.2010.      the Program can spare using go, for
'                              Schäden can no Liability übernommen go.
' Author: Gerhard Putschalka
'                       email: gerhard-putschalka@gmx.at
'                    homepage: https://www.gerhard-putschalka.XProfan.com/index.htm
Declare Tim#,WoTag$[7]
Def Lese_Datum(1)  ! "Kernel32", "GetLocalTime"
Def Setze_Datum(1) ! "Kernel32", "SetLocalTime"
' SYSTEMTIME - structure. uses becomes Tim#
'    WORD Tim#,0   year
'    WORD Tim#,2  month
'    WORD Tim#,4  week-day 0= sunday, 1= monday ... 6= saturday
'    WORD Tim#,6  day
'    WORD Tim#,8  hour
'    WORD Tim#,10 Minute
'    WORD Tim#,12 second
'    WORD Tim#,14 Millisekunde
' initialisieren Wochentagsarray
WoTag$[0] = "Sonntag"
WoTag$[1] = "Montag"
WoTag$[2] = "Dienstag"
WoTag$[3] = "Mittwoch"
WoTag$[4] = "Donnerstag"
WoTag$[5] = "Freitag"
WoTag$[6] = "Samstag"
Dim Tim#,16
@Lese_Datum(Tim#)
' drucke day
Print Wotag$[@Word(Tim#,4)],@Word(Tim#,6);".";@Word(Tim#,2);".";@Word(Tim#,0)
' drucke Uhrzeit
'Print @Word(Tim#,8);":";@Word(Tim#,10);":";@Word(Tim#,12)
Print @Word(Tim#,8);":";@stature$("00",@Word(Tim#,10),);":";@stature$("00",@Word(Tim#,12),);"   Uhr"
' if date/Time staid go should: values in Tim# properly settle and
' @Setze_Datum(Tim#)
' perform
Waitinput
Dispose Tim#
End
 
01/02/20  
 




Erasmus.Herold
too this chapter Help has me not weitergebracht.

29.1.6 - date/Uhrzeit detect and settle
 
01/02/20  
 




Ernst
Maybe helps this
' example reading and settle System-Date and System-Time. for Profan 6.6.
' Version 2.0  15.5.2010.      the Program can spare using go, for
'                              Schäden can no Liability übernommen go.
' Author: Gerhard Putschalka
'                       email: gerhard-putschalka@gmx.at
'                    homepage: https://www.gerhard-putschalka.XProfan.com/index.htm
Declare Tim#,WoTag$[7]
Def Lese_Datum(1)  ! "Kernel32", "GetLocalTime"
Def Setze_Datum(1) ! "Kernel32", "SetLocalTime"
' SYSTEMTIME - structure. uses becomes Tim#
'    WORD Tim#,0   year
'    WORD Tim#,2  month
'    WORD Tim#,4  week-day 0= sunday, 1= monday ... 6= saturday
'    WORD Tim#,6  day
'    WORD Tim#,8  hour
'    WORD Tim#,10 Minute
'    WORD Tim#,12 second
'    WORD Tim#,14 Millisekunde
' initialisieren Wochentagsarray
WoTag$[0] = "Sonntag"
WoTag$[1] = "Montag"
WoTag$[2] = "Dienstag"
WoTag$[3] = "Mittwoch"
WoTag$[4] = "Donnerstag"
WoTag$[5] = "Freitag"
WoTag$[6] = "Samstag"
Dim Tim#,16
@Lese_Datum(Tim#)
' drucke day
Print Wotag$[@Word(Tim#,4)],@Word(Tim#,6);".";@Word(Tim#,2);".";@Word(Tim#,0)
' drucke Uhrzeit
'Print @Word(Tim#,8);":";@Word(Tim#,10);":";@Word(Tim#,12)
Print @Word(Tim#,8);":";@stature$("00",@Word(Tim#,10),);":";@stature$("00",@Word(Tim#,12),);"   Uhr"
' if date/Time staid go should: values in Tim# properly settle and
' @Setze_Datum(Tim#)
' perform
Waitinput
Dispose Tim#
End
 
01/02/20  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.439 Views

Untitledvor 0 min.
macuto07/07/21
Micha1233412/08/20
N.Art11/18/20
Michael W.09/24/20
More...

Themeninformationen

this Topic has 2 subscriber:

Erasmus.Herold (2x)
Ernst (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