English
Source / code snippets

sec Stundenminutensekunden transform

 

Julian
Schmidt

cls
print Seconds_to_Hours&Minutes&Seconds(5122)

while 1

Endwhile

Proc Seconds_to_Hours&Minutes&Seconds

    Parameters sec%
    declare Time$,minutes%,hours%

    if sec%>-1

        while sec%>=60

            minutes%=minutes%+1
            sec%=sec%-60

        Endwhile

        while minutes%>=60

            hours%=hours%+1
            minutes%=minutes%-60

        Endwhile

        Time$=Str $(hours%)+":"+Str $(minutes%)+":"+Str $(sec%)

    Else

        Time$="Unbekannt"

    Endif

    Return Time$

ENDPROC

 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
08/04/11  
 




Detlef
Jagolski
Kürzer
Cls

Proc Change_SecondtoHMS

    Parameters Sekundenzahl%
    var sec% = Sekundenzahl% MOD 60
    var minutes%  = (Sekundenzahl% / 60) MOD 60
    var hours%  = (Sekundenzahl% / 60 / 60) MOD 24
    var Time$ = stature$("00",hours%)+":"+stature$("00",minutes%)+":"+stature$("00",sec%)
    Return Time$

ENDPROC

Print Change_SecondtoHMS(5122)
WaitInput
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
08/04/11  
 




Jörg
Sellmeyer
Also ought to one no Operatorenzeichen in Function-/Prozedurnamen use!!!
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/04/11  
 



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

5.319 Views

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