Exemple #1
0
char *GenTimeKey(time_t now)
 
{ static char str[64];
    
sprintf(str,"%s",ctime(&now));

return ConvTimeKey(str);
}
Exemple #2
0
char *GenTimeKey(time_t now)
{
    static char str[64];
    char timebuf[26];

    snprintf(str, sizeof(str), "%s", cf_strtimestamp_utc(now, timebuf));

    return ConvTimeKey(str);
}