translating date to french
This commit is contained in:
parent
0c8b439446
commit
fe708d2207
2
main.c
2
main.c
@ -39,7 +39,7 @@ char* frtime(const time_t timet)
|
|||||||
date_tm = localtime(&timet);
|
date_tm = localtime(&timet);
|
||||||
strftime(result, 4, "%w", date_tm);
|
strftime(result, 4, "%w", date_tm);
|
||||||
jour = atoi(result);
|
jour = atoi(result);
|
||||||
strftime(result, 40, "%d/%m/%y à %T", date_tm);
|
strftime(result, 40, "%d/%m/%y à %x", date_tm);
|
||||||
sprintf(result, "%d %s", jour, result);
|
sprintf(result, "%d %s", jour, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user