library/src/utility/BP-TimeUtilities.cc
// 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
time_t BP_TimeGetSecondsSinceUnixEpochAsTimeT()
{
	time_t time_since_epoch = time(NULL);
	if(time_since_epoch <= 0)
		return 0;
	return time_since_epoch;
}
time_t BP_TimeGetSecondsSinceUnixEpochAsTimeT ( ) { time_t time_since_epoch = time ( NULL ) ; if ( time_since_epoch <= 0 ) return 0 ; return time_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 // return the time value