Programming Tips



GET SYSTEM TIME

VB.Net
  • Dim ti As String = TimeString
    
VB6
  • Dim ti As String
    ti = Time
    
QuickBasic
  • ti$ = TIME$
    
Interrupt
  • INT 21 - DOS 1+ - GET SYSTEM TIME
    	AH = 2Ch
    Return: CH = hour
    	CL = minute
    	DH = second
    	DL = 1/100 seconds
    Note:	on most systems, the resolution of the system clock is about 5/100sec,
    	  so returned times generally do not increment by 1
    	on some systems, DL may always return 00h