+void yaz_log_time_format(const char *fmt)
+{
+ if ( !fmt || !*fmt)
+ { /* no format, default to new */
+ l_actual_format = l_new_default_format;
+ return;
+ }
+ if (0==strcmp(fmt,"old"))
+ { /* force the old format */
+ l_actual_format = l_old_default_format;
+ return;
+ }
+ /* else use custom format */
+ strncpy(l_custom_format, fmt, TIMEFORMAT_LEN-1);
+ l_custom_format[TIMEFORMAT_LEN-1]='\0';
+ l_actual_format = l_custom_format;
+}
+