library/src/utility/BP-TimeUtilities.cc
BP_SECONDS_SINCE_UNIX_EPOCH BP_TimeGetSecondsSinceUnixEpoch()
{

	// attempt to retrieve time (time_t is a long int)
	time_t time_since_epoch = time(NULL);

	// ensure we didn't somehow get erroneous data
	if(time_since_epoch <= 0)
		return 0;

	// assign value to unsigned
	BP_SECONDS_SINCE_UNIX_EPOCH seconds_since_epoch = time_since_epoch;

	// return 0 if we
	return seconds_since_epoch;

}
// Returns the number of seconds since the unix epoch in a size_t
Returns the number of seconds since the unix epoch in a size_t
Returns the number of seconds since the unix epoch in a size_t
BP_SECONDS_SINCE_UNIX_EPOCH BP_TimeGetSecondsSinceUnixEpoch()
{
	time_t time_since_epoch = time(NULL);
	if(time_since_epoch <= 0)
		return 0;
	BP_SECONDS_SINCE_UNIX_EPOCH seconds_since_epoch = time_since_epoch;
	return seconds_since_epoch;
}
BP_SECONDS_SINCE_UNIX_EPOCH BP_TimeGetSecondsSinceUnixEpoch ( ) { time_t time_since_epoch = time ( NULL ) ; if ( time_since_epoch <= 0 ) return 0 ; BP_SECONDS_SINCE_UNIX_EPOCH seconds_since_epoch = time_since_epoch ; return seconds_since_epoch ; }
Returns the number of seconds since the unix epoch in a size_t
Returns the number of seconds since the unix epoch in a size_t
// attempt to retrieve time (time_t is a long int) // ensure we didn't somehow get erroneous data // assign value to unsigned // return 0 if we