zabbix-agent2/src/zabbix_server/reporter/report_manager.c
/******************************************************************************
 *                                                                            *
 * Function: rm_time_to_urlfield                                              *
 *                                                                            *
 * Purpose: convert timestamp to range format used in URL query fields        *
 *                                                                            *
 * Parameters: tm - [IN] the timestamp                                        *
 *                                                                            *
 * Return value: formatted time to be used in URL query fields                *
 *                                                                            *
 ******************************************************************************/
rm_time_to_urlfield

Purpose: convert timestamp to range format used in URL query fields

Parameters: tm - [IN] the timestamp

Return value: formatted time to be used in URL query fields
rm_time_to_urlfield Purpose : convert timestamp to range format used in URL query fields Parameters : tm - [ IN ] the timestamp Return value : formatted time to be used in URL query fields
static char	*rm_time_to_urlfield(const struct tm *tm)
{
	static char	buf[26];
	zbx_snprintf(buf, sizeof(buf), "%02d-%02d-%02d%%20%02d%%3A%02d%%3A%02d", tm->tm_year + 1900, tm->tm_mon + 1,
			tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
	return buf;
}
static char * rm_time_to_urlfield ( const struct tm * tm ) { static char buf [ 26 ] ; zbx_snprintf ( buf , sizeof ( buf ) , " " , tm -> tm_year + 1900 , tm -> tm_mon + 1 , tm -> tm_mday , tm -> tm_hour , tm -> tm_min , tm -> tm_sec ) ; return buf ; }
Function: rm_time_to_urlfield                                              
                                                                            
 Purpose: convert timestamp to range format used in URL query fields        
                                                                            
 Parameters: tm - [IN] the timestamp                                        
                                                                            
 Return value: formatted time to be used in URL query fields
Function : rm_time_to_urlfield Purpose : convert timestamp to range format used in URL query fields Parameters : tm - [ IN ] the timestamp Return value : formatted time to be used in URL query fields