English
Source / code snippets

stood off date difference Uhrzeit Time Time Zeitstempel

 

Julian
Schmidt
this Source accounts The Difference [temporal Difference] from two times
Proc Differenz_Zeiten

    'accounts The difference from two times
    Parameters Time1$,Time2$
    declare hour%,minute%,second%, suffixstunde$,suffixminute$,suffixsekunde$
    hour%=Val(SUBSTR$(Time2$,1,":"))-Val(SUBSTR$(Time1$,1,":"))
    minute%=Val(SUBSTR$(Time2$,2,":"))-Val(SUBSTR$(Time1$,2,":"))
    second%=Val(SUBSTR$(Time2$,3,":"))-Val(SUBSTR$(Time1$,3,":"))

    if second%<0

        minute%=minute%-1
        second%=second%+60

    Endif

    if minute%<0

        hour%=hour%-1
        minute%=minute%+60

    Endif

    if hour%<0

        hour%=hour%+24

    Endif

    case hour%<>1 : suffixstunde$="n"
    case minute%<>1 : suffixminute$="n"
    case second%<>1 : suffixsekunde$="n"
    duration$=Str $(hour%) + " Stunde" + suffixstunde$ + "; " + Str $(minute%) + " Minute" + suffixminute$ + "; " + Str $(second%) + " Sekunde" + suffixsekunde$

ENDPROC

Windowstyle 24
Window 200,100 - 550,110
declare duration$
Create("GroupBox",%hwnd,"Zeit1:",25,10,100,50)
var Time1&=Create("TimeEdit",%hwnd,"08:55:54",35,28,80,25)
Create("GroupBox",%hwnd,"Zeit2:",135,10,100,50)
var Time2&=Create("TimeEdit",%hwnd,"08:55:53",145,28,80,25)
Create("GroupBox",%hwnd,"Dauer:",245,10,width(%hwnd)-245-20,50)
var Dauer&=Create("Edit",%hwnd,"",255,28,width(%hwnd)-255-30,24)
EnableWindow dauer&,0

while 1

    sleep 200
    Differenz_Zeiten Gettext$(Time1&),Gettext$(Time2&)'Rückgabewert=dauer$
    'Differenz_Zeiten Time1,Time2
    Settext Dauer&,duration$

Endwhile

 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
05/21/11  
 




Andreas
Miethe


can the voices ?


4 kB
Hochgeladen:05/21/11
Downloadcounter256
Download
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
05/21/11  
 




Julian
Schmidt
ought to now free from problems walk
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
05/21/11  
 




Andreas
Miethe


now it fits
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
05/21/11  
 




Julian
Schmidt
rather so. [...] 
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/15/13  
 




E.T.
Sorry, Julian, but Andreas well hereon not any more Answer... [...] 
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
07/16/13  
 




Julian
Schmidt
i know the it defunct is.
Andreas what a guter XProfan.
what would well it now say?
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/16/13  
 



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

18.355 Views

Untitledvor 0 min.
Member 361000511/14/22
p.specht11/20/21
Uwe Lang11/20/21
Manfred Barei11/19/21
More...

Themeninformationen



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