Feature/refactor datetime os dependency (#63)
* remove dependency on OS for time functions. * add datetime epoch to and from seconds (yikes! 64-bit!). Add symmetric midnight seconds for unit test. Add unit tests. * clean up BACnet date time warnings * fix BACnet datetime warnings Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -63,11 +63,6 @@ and globals in favor of more secure versions. */
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <sys/timeb.h>
|
||||
#if defined(__BORLANDC__) || defined(_WIN32)
|
||||
/* seems to not be defined in time.h as specified by The Open Group */
|
||||
/* difference from UTC and local standard time */
|
||||
extern long int timezone;
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define inline __inline
|
||||
|
||||
Reference in New Issue
Block a user