Sub SNMP_ConvertTicksToTimeString(t As Long) As String
Dim days, hours, minutes, seconds As Int
Dim tdays, thours, tminutes, tseconds As Int
Try
tseconds = 100
tminutes = tseconds * 60
thours = tminutes * 60
tdays = thours * 24
seconds = t / tseconds Mod 60
minutes = t / tminutes Mod 60
hours = t / thours Mod 24
days = t / tdays
Return (days & " days, " & hours & " hours, " & minutes & " minutes, " & seconds & " seconds")
Catch
Return ""
End Try
End Sub