Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to calculate elapsed time
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01016916
Message ID:
01119738
Vues:
18
>>See below
>>
>>>
>>>function SecondsToTime
>>>lparameters tnSeconds
>>
>>RETURN IIF( m.tnSeconds > 86400, padl(int(m.tnSeconds/86400),2,'0') + ":", "") + ;
>>                    substr(ttoc({^2006/01/01 00:00:00} + m.tnSeconds,3),12)
>>
>>>endfunc
>
>Ok, thanks. I can make it to be one line <g>

You're missing the point. It's not about making it a one-liner but about not repeating the same code twice.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform