MCPcopy Create free account
hub / github.com/HASwitchPlate/openHASP / makeDateTimeStr

Method makeDateTimeStr

lib/SimpleFTPServer/FtpServer.cpp:1832–1837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1830// pointer to tstr
1831
1832char* FtpServer::makeDateTimeStr(char* tstr, uint16_t date, uint16_t time)
1833{
1834 sprintf(tstr, "%04u%02u%02u%02u%02u%02u", ((date & 0xFE00) >> 9) + 1980, (date & 0x01E0) >> 5, date & 0x001F,
1835 (time & 0xF800) >> 11, (time & 0x07E0) >> 5, (time & 0x001F) << 1);
1836 return tstr;
1837}
1838
1839uint16_t FtpServer::fileSize(FTP_FILE file)
1840{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected