DMR: Fix LRRP Report to File Format; #281

This commit is contained in:
lwvmobile
2025-02-25 11:11:28 -05:00
parent f6aba4a5a4
commit 69dd1d167b
3 changed files with 13 additions and 2 deletions

View File

@@ -60,6 +60,16 @@ char * getDateH()
return curr;
}
//get YYYY-MM-DD with forward slash (LRRP files)
char * getDateS()
{
char * curr = calloc(27, sizeof(char));
time_t t = time(NULL);
struct tm * ptm = localtime(& t);
sprintf(curr, "%04d/%02d/%02d", ptm->tm_year+1900, ptm->tm_mon+1, ptm->tm_mday);
return curr;
}
//get YYYY-MM-DD with hyphen (Ncurses Call History)
char * getDateN(time_t t)
{