FACT++  1.0
void dim_print_date_time ( )

Definition at line 134 of file utilities.c.

References my_ctime, str, t, and time.

Referenced by check_validity(), cmnd_rout(), did_init(), dim_print_date_time_millis(), dim_print_msg(), dim_stop_thread(), dis_insert_request(), dis_remove_service(), dis_send_service(), dis_start_serving_dns(), dna_open_client(), dna_report_error_old(), do_dis_stop_serving_dns(), do_work(), do_workCB(), execute_service(), handle_client_request(), handle_dns_info(), handle_registration(), handler(), BridgeService::infoHandler(), TestGetService::infoHandler(), inform_clients(), kill_servers(), log_it(), main(), print_packet(), print_stats(), recv_rout(), register_services(), release_conn(), release_service(), remove_service(), request_dns_single_info(), rout(), rout_many(), RpcInt::rpcHandler(), Rpc::rpcInfoHandler(), RpcService::rpcInfoHandler(), send_command(), send_dns_update_packet(), send_service(), service_tmout(), set_rpc_info(), MyTimer::timerHandler(), unregister_service(), and update_services().

135 {
136  time_t t;
137  char str[128];
138 
139  t = time((time_t *)0);
140 /*
141 #ifdef WIN32
142  strcpy(str, ctime(&t));
143 #else
144 #ifdef LYNXOS
145  ctime_r(&t, str, 128);
146 #else
147  ctime_r(&t, str);
148 #endif
149 #endif
150 */
151  my_ctime(&t, str, 128);
152  str[(int)strlen(str)-1] = '\0';
153  printf("PID %d - ",getpid());
154  printf("%s - ",str );
155 }
#define my_ctime(t, str, size)
Definition: dim_common.h:275
char str[80]
Definition: test_client.c:7
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Definition: smartfact.txt:92
TT t
Definition: test_client.c:26

+ Here is the caller graph for this function: