NetBurner 3.1
nbtime.h
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
5 #include <time.h>
6 
7 #ifndef _NB_TIME_H
8 #define _NB_TIME_H
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif /* __cplusplus */
14 
15  time_t time(time_t *pt);
16 #ifdef __cplusplus
17 };
18 #endif /* __cplusplus */
19 
20 time_t set_time(time_t time_to_set);
21 time_t timegm(struct tm *bts);
22 
23 #ifdef NB_NET_TYPES_H
24 BOOL SetNTPTime(IPADDR ntpserver);
25 BOOL SetTimeNTPFromPool(bool debug = FALSE);
26 time_t GetNTPTime(IPADDR NTP_server_ip);
27 #endif /* NB_NET_TYPES_H */
28 
29 /*
30  * Legacy function calls.
31  */
32 int IOBoardRTCSetSystemFromRTCTime(void);
33 int IOBoardRTCSetRTCfromSystemTime(void);
34 
35 /*
36  * Set the local time zone by using the TZ environment variable.
37  * Use one of the following for the U.S.:
38  *
39  * tzsetchar( "EST5EDT4,M3.2.0/02:00:00,M11.1.0/02:00:00" ); Eastern
40  * tzsetchar( "CST6CDT5,M3.2.0/02:00:00,M11.1.0/02:00:00" ); Central
41  * tzsetchar( "MST7MDT6,M3.2.0/02:00:00,M11.1.0/02:00:00" ); Mountain
42  * tzsetchar( "MST7" ); Arizona
43  * tzsetchar( "PST8PDT7,M3.2.0/02:00:00,M11.1.0/02:00:00" ); Pacific
44  * tzsetchar( "AKST9AKDT8,M3.2.0/02:00:00,M11.1.0/02:00:00" ); Alaska
45  * tzsetchar( "HST10" ); Hawaii
46  *
47  * Effective 2007, the U.S. starts daylight savings time on the second Sunday of
48  * March at 2:00 AM and ends on the first Sunday of November at 2:00 AM. The
49  * starting and ending date/times for daylight savings time can be omitted from
50  * the string since these rules are used by default.
51  */
52 void tzsetchar(char *tzenv);
53 
54 #endif /* _NB_TIME_H */
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.
Definition: ipv6_addr.h:28