#define MAX_PROGS 3
#include <time.h>
#include <stdbool.h>

typedef struct __attribute__((__packed__)){
    bool Run;                                  
    bool Aktiv;                                
    bool Write;                                
    struct tm startTime;
    time_t runTime;                            
    char Valve;                                
} runevent_s;
 
int main()
 {
  runevent_s dayrunevent[MAX_PROGS];
  time_t rawtime = time(NULL);
  struct tm picTime = *localtime (&rawtime);
 
  for (int i=0; i < MAX_PROGS; i++) {    
    dayrunevent[i].startTime = picTime; // picTime ist vom typ struct tm
    dayrunevent[i].startTime.tm_mday = 5;
    mktime(&dayrunevent[i].startTime);
  }
 }