Lines Matching defs:timestr
779 ** timestr2time (timestr)
780 ** timestr should look like "20071211223901" for 12 dec 2007 22:39:01
782 time_t timestr2time (const char *timestr)
787 // fprintf (stderr, "timestr = \"%s\"\n", timestr);
788 if ( sscanf (timestr, "%4d%2d%2d%2d%2d%2d",
828 static char timestr[31+1]; /* 27+1 should be enough */
832 timestr[0] = '\0';
834 return timestr;
843 strftime (timestr, sizeof (timestr), tformat, t);
851 timestr[0] = '\0';
853 return timestr;
863 snprintf (timestr, sizeof (timestr), "%s %2d %4d %02d:%02d:%02d %c%02d%02d",
869 snprintf (timestr, sizeof (timestr), "%s %2d %4d %02d:%02d %c%02d%02d",
877 snprintf (timestr, sizeof (timestr), "%s %2d %4d %02d:%02d:%02d",
881 snprintf (timestr, sizeof (timestr), "%s %2d %4d %02d:%02d",
887 return timestr;
898 static char timestr[31+1]; /* 27+1 should be enough */
900 timestr[0] = '\0';
902 return timestr;
906 snprintf (timestr, sizeof (timestr), "%4d%02d%02d%02d%02d%02d",
910 snprintf (timestr, sizeof (timestr), "%4d%02d%02d%02d%02d",
914 return timestr;