- node.ATime = timestamp(0,0,0,
- ((Entry->adate&0x1F) - 1), // Days
- ((Entry->adate&0x1E0) - 1), // Months
- 1980+((Entry->adate&0xFF00)>>8) // Years
- );
-
- node.CTime = Entry->ctimems * 10; // Miliseconds
- node.CTime += timestamp(
- ((Entry->ctime&0x1F)<<1), // Seconds
- ((Entry->ctime&0x3F0)>>5), // Minutes
- ((Entry->ctime&0xF800)>>11), // Hours
- ((Entry->cdate&0x1F)-1), // Days
- ((Entry->cdate&0x1E0)-1), // Months
- 1980+((Entry->cdate&0xFF00)>>8) // Years
- );
-
- node.MTime = timestamp(
- ((Entry->mtime&0x1F)<<1), // Seconds
- ((Entry->mtime&0x3F0)>>5), // Minutes
- ((Entry->mtime&0xF800)>>11), // Hours
- ((Entry->mdate&0x1F)-1), // Days
- ((Entry->mdate&0x1E0)-1), // Months
- 1980+((Entry->mdate&0xFF00)>>8) // Years
- );
+ ret->CTime = FAT_int_GetAcessTimestamp(Entry->cdate, Entry->ctime, Entry->ctimems);
+ ret->MTime = FAT_int_GetAcessTimestamp(Entry->mdate, Entry->mtime, 0);
+ ret->ATime = FAT_int_GetAcessTimestamp(Entry->adate, 0, 0);