Removed get_time from common.c

Uses GDateTime instead
This commit is contained in:
James Booth
2012-08-26 22:36:00 +01:00
parent 6f2870ed7d
commit 51e5156fab
4 changed files with 17 additions and 31 deletions

View File

@@ -48,18 +48,6 @@ create_dir(char *name)
e = mkdir(name, S_IRWXU);
}
void
get_time(char *thetime)
{
time_t rawtime;
struct tm *timeinfo;
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(thetime, 80, "%H:%M", timeinfo);
}
char *
str_replace(const char *string, const char *substr,
const char *replacement)