30#include "apr_arch_misc.h"
35#define IsLeapYear(y) ((!(y % 4)) ? (((y % 400) && !(y % 100)) ? 0 : 1) : 0)
55 {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334};
57 if (
tm->wMonth < 1 ||
tm->wMonth > 12)
147#if APR_HAS_UNICODE_FS && !defined(_WIN32_WCE)
184 - (-(
tz->Bias +
tz->StandardBias) / 60);
187#if APR_HAS_ANSI_FS || defined(_WIN32_WCE)
211 result->tm_gmtoff = (
tz.Bias +
tz.StandardBias) * -60;
215 result->tm_gmtoff = (
tz.Bias +
tz.DaylightBias) * -60;
232 {306, 337, 0, 31, 61, 92, 122, 153, 184, 214, 245, 275};
277 (*ostime)->wYear =
aprexptime->tm_year + 1900;
284 (*ostime)->wMilliseconds =
aprexptime->tm_usec / 1000;
305 if ((*ostime)->wMonth < 1 || (*ostime)->wMonth > 12)
320#if defined(_WIN32_WCE)
static APR_INLINE void FileTimeToAprTime(apr_time_t *result, FILETIME *input)
static APR_INLINE void AprTimeToFileTime(LPFILETIME pft, apr_time_t t)
APR Miscellaneous library routines.
APR general purpose library routines.
APR Portability Routines.
apr_array_header_t ** result
struct tm apr_os_exp_time_t
struct timeval apr_os_imp_time_t
apr_os_imp_time_t ** ostime
apr_size_t apr_size_t const char apr_time_exp_t * tm
apr_time_t apr_int32_t offs
apr_int64_t apr_interval_time_t
#define apr_time_sec(time)
#define ELSE_WIN_OS_IS_ANSI
typedef int(WSAAPI *apr_winapi_fpt_WSAPoll)(IN OUT LPWSAPOLLFD fdArray
#define IF_WIN_OS_IS_UNICODE
#define SetTimerResolution
typedef DWORD(WINAPI *apr_winapi_fpt_GetCompressedFileSizeA)(IN LPCSTR lpFileName
static DWORD get_local_timezone(TIME_ZONE_INFORMATION **tzresult)
static void SystemTimeToAprExpTime(apr_time_exp_t *xt, SYSTEMTIME *tm)
static apr_status_t clock_restore(void *unsetres)