Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert seconds into days,hours,minutes and seconds
Message
From
31/03/2004 06:31:17
 
 
To
30/03/2004 21:19:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00891059
Message ID:
00891117
Views:
28
What is the best way to convert seconds into days,hours,minutes and seconds
RETURN PADL( INT( tnElapsedSeconds / 86400 ), 3 )+' Days ';
  + PADL( INT(( tnElapsedSeconds % 86400 ) / 3600 ), 2, '0' )+' Hrs ' ;
  + PADL( INT(( tnElapsedSeconds % 3600 ) / 60 ), 2, '0')+' Min ' ;
  + PADL( INT( tnElapsedSeconds % 60 ), 2, '0' )+' Sec '
Previous
Reply
Map
View

Click here to load this message in the networking platform