Skip to content

DD_TIME_EX

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
typedef struct _dd_time_ex_
{
    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_EX;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_TIME_EX
{
    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 (1–12; January = 1).
year unsigned short Year (current year ).
nTotalseconds int Total seconds.
nMicrosecond int Microseconds.
Error Code