MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / TimeIntervalToString

Function TimeIntervalToString

sourcecommon/utils.cpp:580–592  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

578}
579//---------------------------------------------------------------------------
580AnsiString TimeIntervalToString(TDateTime interval)
581{
582 AnsiString rv;
583 DWORD dd, hh, mm, ss;
584 dd = (DWORD)(double)interval;
585 interval -= (double)dd;
586 hh = (DWORD)((double)interval/(1.0/24.0));
587 interval -= (double)hh*(1.0/24.0);
588 mm = (DWORD)((double)interval/(1.0/1440.0));
589 interval -= (double)mm*(1.0/1440.0);
590 ss = (DWORD)((double)interval/(1.0/86400.0));
591 return rv.sprintf("%u %02u:%02u:%02u", dd, hh, mm, ss);
592}
593//---------------------------------------------------------------------------
594//#define AllowFormVisibleInPixel 100
595bool CorrectFormRect(int & l, int & t, int & w, int & h)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected