//  Copyright (c) 2001, Reson, Inc. All Rights Reserved.
//
//  Filename:   EdgeTechSystemTime.cpp
//
//  Project:    6046
//
//  Author(s):  W. Arcus
//
//  Purpose:    
//
//  Notes:      
//

#include "StdAfx.h"
#include "EdgeTechSystemTime.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// CEdgeTechSystemTime class implementation.

CEdgeTechSystemTime::CEdgeTechSystemTime( void )
{
    ::memset( this, 0x00, sizeof( TimestampType ) );

    SetCurrentTime();
}

CEdgeTechSystemTime::~CEdgeTechSystemTime( void )
{
}

void CEdgeTechSystemTime::SetCurrentTime( void )
{
    time = (CTime::GetCurrentTime()).GetTime();
}

void CEdgeTechSystemTime::SetTime( const time_t *psTime )
{
    time = *psTime;
}

CEdgeTechSystemTime::operator TimestampType * ( void ) const
{
    return ( (::TimestampType *) this );
}

CEdgeTechSystemTime::operator unsigned long ( void ) const
{
    return ((unsigned long) (sizeof( ::TimestampType ) ) );
}
