diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-31 16:09:53 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-07-31 16:09:53 +0200 |
commit | 879d51525932a2ba2841744ed302c170b5dc8270 (patch) | |
tree | 003d31fb6c5e7e8e1654ef07247215be93dfa960 /src/liboutils/include/tzfile.h | |
parent | 92f91930172eec04f302898d2957e32f1d773348 (diff) | |
download | outils-879d51525932a2ba2841744ed302c170b5dc8270.tar.gz outils-879d51525932a2ba2841744ed302c170b5dc8270.tar.xz outils-879d51525932a2ba2841744ed302c170b5dc8270.zip |
add liboutils (from OpenBSD, libressl-portable, obase)
Diffstat (limited to 'src/liboutils/include/tzfile.h')
-rw-r--r-- | src/liboutils/include/tzfile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/liboutils/include/tzfile.h b/src/liboutils/include/tzfile.h new file mode 100644 index 0000000..6a69a9b --- /dev/null +++ b/src/liboutils/include/tzfile.h @@ -0,0 +1,7 @@ +#include <time.h> +#include <sys/types.h> + +#define SECSPERDAY 24*60*60 +#define TM_YEAR_BASE 1900 + +#define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0)) |