value to clock format?
#6

Mine:
PHP код:
stock SecToMin(value)
{
    new 
sec value%60,
        
min Euclideandiv(value60),
        
str[30];
    
format(strsizeof(str), "%02i:%02i"minsec);
    return 
str;
}
stock Euclideandiv(dividendediviseur, &reste 0)
{
    new
        
result 0;
    for(; 
dividende >= diviseurresult++)
        
dividende -= diviseur;
    
    
reste dividende;    
    return 
result;

Reply


Messages In This Thread
value to clock format? - by Lirbo - 08.07.2016, 17:46
Re: value to clock format? - by Dusan01 - 08.07.2016, 17:47
Re: value to clock format? - by AbyssMorgan - 08.07.2016, 17:49
Re: value to clock format? - by Konstantinos - 08.07.2016, 17:53
Re: value to clock format? - by AbyssMorgan - 08.07.2016, 17:54
Re: value to clock format? - by Dayrion - 08.07.2016, 18:11
Re: value to clock format? - by AbyssMorgan - 08.07.2016, 18:16
Re: value to clock format? - by Lirbo - 08.07.2016, 18:42

Forum Jump:


Users browsing this thread: 1 Guest(s)