Skip to content

DD_TIME,LP_DD_TIME

Structure Definition

 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;
}

Function Description

Structure for recording time

Member Description

Member Type Remark
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 Total seconds.
nMicrosecond int Microseconds.
Error Code