Return the time & date as an epoch Arguments: None

Return TypeFunction nameArguments
uint32_thzXDate::AsEpoch(void)

Declared in file: hzDate.h
Defined in file : hzDate.cpp

Function Logic:

0:START 1:unknown 2:Return 0 3:m_hour 4:epoch epoch m_usec epoch 5:Return epoch

Function body:

uint32_t hzXDate::AsEpoch (void)
{
   //  Return the time & date as an epoch
   //  
   //  Arguments: None
   //  Returns: Number of seconds passed since epoch start
   uint32_t    epoch ;     //  Target epoch
   if (m_hour < HOURS_B4_EPOCH || m_hour > HOURS_EPOCH_END)
       return 0;
   epoch = m_hour - HOURS_B4_EPOCH ;
   epoch *= SECS_IN_HOUR ;
   epoch += (m_usec/1000000);
   return epoch ;
}