![]() |
ConvertMS() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: DNSAnswer.h |
Declaration
static std::string ConvertMS(
unsigned long ulNumber);
Descriptionof namespace
Function Body
//Our string
char aTmp[100];
//What are we
if (ulNumber<60)
sprintf(aTmp," (%lu seconds)",ulNumber);
else if (ulNumber<3600)
sprintf(aTmp," (%lu minutes)",ulNumber/60);
else if (ulNumber<86400)
sprintf(aTmp," (%lu hours)",ulNumber/3600);
else
sprintf(aTmp," (%lu days)",ulNumber/86400);
//Done
return aTmp;
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |