library/src/utility/BP-TimeUtilities.cc
// Returns a formatted string from timestamps.
Returns a formatted string from timestamps.
Returns a formatted string from timestamps .
char * BP_TimeConvertTimeTToAscii(time_t * time_in)
{
	char * out_buff = (char *) bpstrdup(ctime(time_in));
	if(!out_buff)
		return NULL;
	if(!strnlen(out_buff, 10))
	{
		bpfree(out_buff);
		return NULL;
	}
	return out_buff;
}
char * BP_TimeConvertTimeTToAscii ( time_t * time_in ) { char * out_buff = ( char * ) bpstrdup ( ctime ( time_in ) ) ; if ( ! out_buff ) return NULL ; if ( ! strnlen ( out_buff , 10 ) ) { bpfree ( out_buff ) ; return NULL ; } return out_buff ; }
Returns a formatted string from timestamps.
Returns a formatted string from timestamps .
// create buffer // if buffer failed creation, exit here // if the buffer is zero length, exit here // still need to free it, as it was allocated OK // return the converted time string