Ejemplo n.º 1
0
INT_PTR GetContactLocalTime_old(WPARAM wParam, LPARAM lParam)
{
    MTime	now;
    now.GetLocalTime(wParam);

    LPSYSTEMTIME pSystemTime = (LPSYSTEMTIME)lParam;
    *pSystemTime = now.SystemTime();
    return 0;
}
Ejemplo n.º 2
0
void	MTime::Set(const MTime &mt)
{
	Set(mt.SystemTime(), mt.IsLocal());
}
Ejemplo n.º 3
0
/**
 * name:	Compare
 * desc:	compare a MTime with the value of current object and return difference as number of seconds it handles some strange, too.
 * param:	mt	- MTime to compare with
 * return:	number of seconds the st differs from the class value
 **/ 
LONG	MTime::Compare(const MTime &mt) const
{
	return Compare(mt.SystemTime());
}