Ignore:
Timestamp:
Jul 5, 2020, 10:49:56 PM (4 years ago)
Author:
coas-nagasima
Message:

sdfsを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/ntshell/fatfs/fftime.c

    r331 r435  
    254254        return -1;
    255255}
    256 
    257 DWORD get_fattime(void)
    258 {
    259         time_t temp;
    260         struct tm _tm;
    261 
    262         temp = rtc_read();
    263         gmtime_r(&temp, &_tm);
    264 
    265         return    ((DWORD)(_tm.tm_year - 1980) << 25)
    266                 | ((DWORD)_tm.tm_mon << 21)
    267                 | ((DWORD)_tm.tm_mday << 16)
    268                 | ((DWORD)_tm.tm_hour << 11)
    269                 | ((DWORD)_tm.tm_min << 5)
    270                 | ((DWORD)_tm.tm_sec >> 1);
    271 }
Note: See TracChangeset for help on using the changeset viewer.