跳转至

DD_TIME,LP_DD_TIME

结构体定义

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
typedef struct _dd_time_
{
    unsigned char second; 
    unsigned char minute; 
    unsigned char hour;   
    unsigned char wday;   
    unsigned char mday;   
    unsigned char month;  
    unsigned short year;  
    int nTotalseconds;    
    int nMicrosecond;     
} DD_TIME, * LP_DD_TIME;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_TIME
{
    public byte second;
    public byte minute;
    public byte hour;
    public byte wday;
    public byte mday;
    public byte month;
    public UInt16 year;
    public Int32 nTotalseconds;
    public Int32 nMicrosecond;
}

功能描述

记录时间的结构体

成员说明

成员 类型 备注
second unsigned char Seconds after minute (0–59)。
minute unsigned char Minutes after hour (0–59)。
hour unsigned char Hours since midnight (0–23)。
wday unsigned char Day of week (0–6; Sunday = 0)。
mday unsigned char Day of month (1–31)。
month unsigned char Month (0–11; January = 0)。
year unsigned short Year (current year minus 1900)。
nTotalseconds int 总秒数。
nMicrosecond int 微秒。
错误码