home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / dos / prg / bas / hanlin3 / basupd20 / second.bas < prev    next >
BASIC Source File  |  1992-06-17  |  813b  |  18 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |           BasUpd  Copyright (c) 1992  Thomas G. Hanlin III           |
  4. '   |                                                                      |
  5. '   |            See BASUPD.DOC for info on distribution policy            |
  6. '   |                                                                      |
  7. '   +----------------------------------------------------------------------+
  8.  
  9.    DEFINT A-Z
  10.  
  11. FUNCTION Second (SerialNr#)
  12.    Seconds& = CLNG((ABS(SerialNr#) - INT(ABS(SerialNr#))) * 86400#)
  13.    Hours = Seconds& \ 3600&
  14.    Seconds& = Seconds& - Hours * 3600&
  15.    Minutes = Seconds& \ 60&
  16.    Second = Seconds& - Minutes * 60&
  17. END FUNCTION
  18.