netatalk  4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
ad_date.c File Reference
#include <arpa/inet.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <atalk/adouble.h>
#include <atalk/logger.h>

Functions

int set_utc_offset (uint32_t *aint_p, ad_time_offset_dir_t offset_dir)
 Convert an AFP date-time value between local time and UTC.
int ad_setdate (struct adouble *ad, unsigned int dateoff, uint32_t date)
int ad_getdate (const struct adouble *ad, unsigned int dateoff, uint32_t *date)

Function Documentation

◆ ad_getdate()

int ad_getdate ( const struct adouble * ad,
unsigned int dateoff,
uint32_t * date )

◆ ad_setdate()

int ad_setdate ( struct adouble * ad,
unsigned int dateoff,
uint32_t date )

◆ set_utc_offset()

int set_utc_offset ( uint32_t * aint_p,
ad_time_offset_dir_t offset_dir )

Convert an AFP date-time value between local time and UTC.

Parameters
aint_pAFP date-time to be converted.
offset_dirWhich direction we want to convert the timestamp.