X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Ftools.c;fp=libcitadel%2Flib%2Ftools.c;h=c93758e2bc1388498e895f1f21b2b272bcb81c8c;hb=365a7b93fe804fe6c618946086fc74c2c39b2dae;hp=ad541ddf1a0ca08726a2dca123c52182395a0864;hpb=af6faa677c4ed7a8d0e8a25b8cb120ca688cd70a;p=citadel.git diff --git a/libcitadel/lib/tools.c b/libcitadel/lib/tools.c index ad541ddf1..c93758e2b 100644 --- a/libcitadel/lib/tools.c +++ b/libcitadel/lib/tools.c @@ -2,7 +2,7 @@ * A basic toolset containing miscellaneous functions for string manipluation, * encoding/decoding, and a bunch of other stuff. * - * Copyright (c) 1987-2011 by the citadel.org team + * Copyright (c) 1987-2017 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -461,32 +461,6 @@ int haschar(const char *st, int ch) } - - - -/* - * Format a date/time stamp for output - * seconds is whether to print the seconds - */ -void fmt_date(char *buf, size_t n, time_t thetime, int seconds) { - struct tm tm; - char *teh_format = NULL; - - *buf = '\0'; - localtime_r(&thetime, &tm); - - if (seconds) { - teh_format = "%F %R:%S"; - } - else { - teh_format = "%F %R"; - } - - strftime(buf, n, teh_format, &tm); -} - - - /* * Determine whether the specified message number is contained within the * specified sequence set.