Go to the documentation of this file.
12 char *
ydhmsf(
double dtime,
char zone) {
15 static char string[17];
18 return "Undefined time";
21 itime = (time_t) dtime;
23 case 'G': ts = gmtime(&itime);
25 case 'L': ts = localtime(&itime);
28 fprintf(
stderr,
"-W- %s line %d: ", __FILE__, __LINE__);
29 fprintf(
stderr,
"Bad timezone argument passed to ydhmsf().\n");
34 int fracSec = floor(1000 * (dtime - itime) + 0.0005);
35 if (fracSec == 1000) {
40 sprintf(
string,
"%d%03d%02d%02d%02d%03.0f",
char * ydhmsf(double dtime, char zone)