home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Database
/
CLIPR503.W96
/
TSTRING.PR_
/
TSTRING.PR
Wrap
Text File
|
1995-06-20
|
556b
|
27 lines
/***
*
* Tstring.prg
*
* Summer '87 TSTRING() Compatibility Routine
*
* Copyright (c) 1993, Computer Associates International Inc.
* All rights reserved.
*
*/
/***
*
* TSTRING( <seconds> )
*
* Return a 24-hour time string from numeric seconds
*
* Note: Time quantities over 24 hours are returned by the DAYS() function.
*
*/
FUNCTION TSTRING(cl_secs)
RETURN STRZERO( INT(MOD(cl_secs/3600, 24)), 2, 0 ) +':'+;
STRZERO( INT(MOD(cl_secs/ 60, 60)), 2, 0 ) +':'+;
STRZERO( INT(MOD(cl_secs , 60)), 2, 0 )