Macros | Functions
time_support.c File Reference
#include "internal.h"
#include <time.h>
Include dependency graph for time_support.c:

Go to the source code of this file.

Macros

#define _POSIX_C_SOURCE   201410L /* for gmtime_r */
 
#define SECS_PER_DAY   (24 * 60 * 60)
 

Functions

static long date_to_julian (int y, int m, int d)
 
static int julian_adj (const struct tm *tm, int off_day, long offset_sec, long *pday, int *psec)
 
static void julian_to_date (long jd, int *y, int *m, int *d)
 
struct tmOPENSSL_gmtime (const time_t *time, struct tm *result)
 
int OPENSSL_gmtime_adj (struct tm *tm, int off_day, long offset_sec)
 
int OPENSSL_gmtime_diff (int *out_days, int *out_secs, const struct tm *from, const struct tm *to)
 

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   201410L /* for gmtime_r */

Definition at line 59 of file time_support.c.

◆ SECS_PER_DAY

#define SECS_PER_DAY   (24 * 60 * 60)

Definition at line 67 of file time_support.c.

Function Documentation

◆ date_to_julian()

static long date_to_julian ( int  y,
int  m,
int  d 
)
static

Definition at line 81 of file time_support.c.

◆ julian_adj()

static int julian_adj ( const struct tm tm,
int  off_day,
long  offset_sec,
long pday,
int psec 
)
static

Definition at line 103 of file time_support.c.

◆ julian_to_date()

static void julian_to_date ( long  jd,
int y,
int m,
int d 
)
static

Definition at line 87 of file time_support.c.

◆ OPENSSL_gmtime()

struct tm* OPENSSL_gmtime ( const time_t *  time,
struct tm result 
)

Definition at line 69 of file time_support.c.

◆ OPENSSL_gmtime_adj()

int OPENSSL_gmtime_adj ( struct tm tm,
int  off_day,
long  offset_sec 
)

Definition at line 144 of file time_support.c.

◆ OPENSSL_gmtime_diff()

int OPENSSL_gmtime_diff ( int out_days,
int out_secs,
const struct tm from,
const struct tm to 
)

Definition at line 174 of file time_support.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:34