MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / formatHttpDate

Function formatHttpDate

ESP32_AP-Flasher/src/contentmanager.cpp:2993–3001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2991}
2992
2993char *formatHttpDate(const time_t t) {
2994 static char buf[40];
2995 struct tm *timeinfo;
2996 timeinfo = localtime(&t); // Get the local time
2997 const time_t utcTime = mktime(timeinfo); // Convert to UTC
2998 timeinfo = gmtime(&utcTime);
2999 strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S GMT", timeinfo);
3000 return buf;
3001}
3002
3003String urlEncode(const char *msg) {
3004 constexpr const char *hex = "0123456789ABCDEF";

Callers 2

getImgURLFunction · 0.85
getJsonTemplateUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected