+ // When hide_if_equals_localtime is true, compare local and target time to display only if different
+ time_t local_t = mktime(&local_tm);
+ double diff = difftime(local_t, t);
+ if (hide_if_equals_localtime && diff == 0.0) {
+ goto out;
+ }
+
+ if (locale != NULL) {
+ setlocale(LC_ALL, locale);
+ }
+