Ich habe:
1 | typedef union |
2 | {
|
3 | struct
|
4 | {
|
5 | unsigned char wday; // day of the week, 00-06 |
6 | unsigned char mday; // day of the month, 01-31 |
7 | unsigned char mon; // month, 01-12 |
8 | unsigned char year; // years, 00-99 |
9 | }; // field access |
10 | unsigned char b[4]; // byte access |
11 | unsigned short w[2]; // 16 bits access |
12 | unsigned long l; // 32 bits access |
13 | }realDate; |
14 | |
15 | |
16 | // Wie kann ich hier ein datum vordefinieren?
|
17 | // z.B. date_now.wday = 1;
|
18 | static realDate date_now; |