MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / printFatDate

Method printFatDate

Marlin/src/sd/SdBaseFile.cpp:1306–1312  ·  view source on GitHub ↗

* %Print a directory date field. * * Format is yyyy-mm-dd. * * \param[in] pr Print stream for output. * \param[in] fatDate The date field from a directory entry. */

Source from the content-addressed store, hash-verified

1304 * \param[in] fatDate The date field from a directory entry.
1305 */
1306void SdBaseFile::printFatDate(const uint16_t fatDate) {
1307 SERIAL_ECHO(FAT_YEAR(fatDate));
1308 SERIAL_CHAR('-');
1309 print2u(FAT_MONTH(fatDate));
1310 SERIAL_CHAR('-');
1311 print2u(FAT_DAY(fatDate));
1312}
1313
1314/**
1315 * %Print a directory time field.

Callers

nothing calls this directly

Calls 6

FAT_YEARFunction · 0.85
print2uFunction · 0.85
FAT_MONTHFunction · 0.85
FAT_DAYFunction · 0.85
SERIAL_ECHOFunction · 0.50
SERIAL_CHARFunction · 0.50

Tested by

no test coverage detected