Hello everyone, I am using the NRF52833 chip. I want to create a file and set the file creation time. By consulting the internal code of the f_open function, I found that the file creation time is obtained by Get-FATTIME(), but this function only has the date of year, month, and day, without any hours, minutes, or seconds. The result is that the file creation time cannot be set to hours, minutes, and seconds. What should I do? Thank you to anyone who can help me.
The following is the code in ff. c:
/* Timestamp */
#if _FS_NORTC == 1
#if _NORTC_YEAR < 1980 || _NORTC_YEAR > 2107 || _NORTC_MON < 1 || _NORTC_MON > 12 || _NORTC_MDAY < 1 || _NORTC_MDAY > 31
#error Invalid _FS_NORTC settings
#endif
#define GET_FATTIME() ((DWORD)(_NORTC_YEAR - 1980) << 25 | (DWORD)_NORTC_MON << 21 | (DWORD)_NORTC_MDAY << 16)
#else
#define GET_FATTIME() get_fattime()
#endif