instruder
论坛版主
论坛版主
  • 注册日期2010-03-10
  • 最后登录2011-02-15
  • 粉丝0
  • 关注7
  • 积分31分
  • 威望281点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1854回复:0

求下fat的时间转化

楼主#
更多 发布于:2010-09-03 14:45
typedef struct _FATDirEntry
{
    union
    {
        struct { unsigned char Filename[8], Ext[3]; };
        unsigned char ShortName[11];//A
    };
    unsigned char  Attrib;//B
    unsigned char  lCase;//C
    unsigned char  CreationTimeMs;//D
    unsigned short CreationTime,CreationDate,AccessDate;//13
    union
    {
        unsigned short FirstClusterHigh; // FAT32
        unsigned short ExtendedAttributes; // FAT12/FAT16
    };
    unsigned short UpdateTime;                            //time create/update
    unsigned short UpdateDate;                            //date create/update
    unsigned short FirstCluster;
    unsigned long  FileSize;
}FATDir,*pFATDir;

目录项的时间转化成标准的像2008-12-12 9:20这样的太复杂了,有没有做过的直接传下源码哈

谢谢啦
游客

返回顶部