MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpGetDateString2

Function httpGetDateString2

cups/http-support.c:799–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797 */
798
799const char * /* O - Date/time string */
800httpGetDateString2(time_t t, /* I - Time in seconds */
801 char *s, /* I - String buffer */
802 int slen) /* I - Size of string buffer */
803{
804 struct tm tdate; /* UNIX date/time data */
805
806
807 gmtime_r(&t, &tdate);
808
809 snprintf(s, (size_t)slen, "%s, %02d %s %d %02d:%02d:%02d GMT", http_days[tdate.tm_wday], tdate.tm_mday, http_months[tdate.tm_mon], tdate.tm_year + 1900, tdate.tm_hour, tdate.tm_min, tdate.tm_sec);
810
811 return (s);
812}
813
814
815/*

Callers 4

cgiSetCookieFunction · 0.85
save_rssFunction · 0.85
cupsSendRequestFunction · 0.85
httpGetDateStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected