libraries/SDFS/src/SDFS.h
static void dateTimeCB(uint16_t *dosYear, uint16_t *dosTime) {
        time_t now;
	extern time_t (*__sdfs_timeCallback)(void);
        if (__sdfs_timeCallback) {
            now = __sdfs_timeCallback();
        } else {
            now = time(nullptr);
        }
        struct tm *tiempo = localtime(&now);
        *dosYear = ((tiempo->tm_year - 80) << 9) | ((tiempo->tm_mon + 1) << 5) | tiempo->tm_mday;
        *dosTime = (tiempo->tm_hour << 11) | (tiempo->tm_min << 5) | tiempo->tm_sec;
    }
// Because SdFat has a single, global setting for this we can only use a
// static member of our class to return the time/date.
Because SdFat has a single, global setting for this we can only use a
static member of our class to return the time/date.
Because SdFat has a single global setting for this we can only use a static member of our class to return the time / date .
static void dateTimeCB(uint16_t *dosYear, uint16_t *dosTime) {
        time_t now;
	extern time_t (*__sdfs_timeCallback)(void);
        if (__sdfs_timeCallback) {
            now = __sdfs_timeCallback();
        } else {
            now = time(nullptr);
        }
        struct tm *tiempo = localtime(&now);
        *dosYear = ((tiempo->tm_year - 80) << 9) | ((tiempo->tm_mon + 1) << 5) | tiempo->tm_mday;
        *dosTime = (tiempo->tm_hour << 11) | (tiempo->tm_min << 5) | tiempo->tm_sec;
    }
static void dateTimeCB ( uint16_t * dosYear , uint16_t * dosTime ) { time_t now ; extern time_t ( * __sdfs_timeCallback ) ( void ) ; if ( __sdfs_timeCallback ) { now = __sdfs_timeCallback ( ) ; } else { now = time ( nullptr ) ; } struct tm * tiempo = localtime ( & now ) ; * dosYear = ( ( tiempo -> tm_year - 80 ) << 9 ) | ( ( tiempo -> tm_mon + 1 ) << 5 ) | tiempo -> tm_mday ; * dosTime = ( tiempo -> tm_hour << 11 ) | ( tiempo -> tm_min << 5 ) | tiempo -> tm_sec ; }
Because SdFat has a single, global setting for this we can only use a
static member of our class to return the time/date.
Because SdFat has a single global setting for this we can only use a static member of our class to return the time / date .