FireBirdLib - Topfield TMS PVR TAP Programming Library
FBLib_time.h
Go to the documentation of this file.
1#ifndef FBLIB_TIME_H
2#define FBLIB_TIME_H
3
4 #include "libFireBird.h"
5
6 #define MANUALDSTINI "DST.ini"
7
8 extern tDSTRule DSTRule;
10
11 void DST_GetDefaultDSTRule(void);
12 dword DST_GetNextTransition(byte ruleOrdinal, byte ruleDay, byte ruleMonth, byte ruleHour, byte ruleMin, word ruleYear);
13 void DST_ProcessRule(char *dstRule, dword *dstDate, dword StartDate);
14 void DST_GetTransitions_Manual(dword *DSTStartUTC, dword *DSTEndUTC);
15 void DST_GetTransitions_Europe(dword *DSTStartUTC, dword *DSTEndUTC, dword StartDate);
16
17 typedef struct TYPE_CRONTAB
18 {
19 bool active; //Is this entry active?
20 dword nextExecution; //Next execution time
21 void *function; //Function to call when it's time
22 int frequency; //Frequency of execution
24
25 #define MAX_CRON_EVENTS 10
26
27 extern int cronItemCount;
29 extern bool cronInit;
30
31#endif
void DST_GetTransitions_Europe(dword *DSTStartUTC, dword *DSTEndUTC, dword StartDate)
dword DSTEndUTCsaved
Definition: FBLib_time.h:9
TYPE_CRONTAB cronTable[MAX_CRON_EVENTS]
struct TYPE_CRONTAB TYPE_CRONTAB
void DST_ProcessRule(char *dstRule, dword *dstDate, dword StartDate)
#define MAX_CRON_EVENTS
Definition: FBLib_time.h:25
void DST_GetDefaultDSTRule(void)
dword DSTStartUTCsaved
Definition: DST_SetDSTRule.c:4
void DST_GetTransitions_Manual(dword *DSTStartUTC, dword *DSTEndUTC)
bool cronInit
dword DST_GetNextTransition(byte ruleOrdinal, byte ruleDay, byte ruleMonth, byte ruleHour, byte ruleMin, word ruleYear)
int cronItemCount
tDSTRule DSTRule
Definition: DST_SetDSTRule.c:3
tDSTRule
Definition: libFireBird.h:2695
void * function
Definition: FBLib_time.h:21
dword nextExecution
Definition: FBLib_time.h:20