php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
cdf_time.c File Reference
#include "file.h"
#include <time.h>
#include <string.h>
#include "cdf.h"

Go to the source code of this file.

Macros

#define isleap(y)
 

Functions

int cdf_timestamp_to_timespec (struct timespec *ts, cdf_timestamp_t t)
 
int cdf_timespec_to_timestamp (cdf_timestamp_t *t, const struct timespec *ts)
 
char * cdf_ctime (const time_t *sec, char *buf)
 

Macro Definition Documentation

◆ isleap

#define isleap ( y)
Value:
((((y) % 4) == 0) && \
((((y) % 100) != 0) || (((y) % 400) == 0)))

Definition at line 41 of file cdf_time.c.

Function Documentation

◆ cdf_ctime()

char * cdf_ctime ( const time_t * sec,
char * buf )

Definition at line 169 of file cdf_time.c.

◆ cdf_timespec_to_timestamp()

int cdf_timespec_to_timestamp ( cdf_timestamp_t * t,
const struct timespec * ts )

Definition at line 147 of file cdf_time.c.

◆ cdf_timestamp_to_timespec()

int cdf_timestamp_to_timespec ( struct timespec * ts,
cdf_timestamp_t t )

Definition at line 99 of file cdf_time.c.