#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) |
| int ad_getdate | ( | const struct adouble * | ad, |
| unsigned int | dateoff, | ||
| uint32_t * | date ) |
| int ad_setdate | ( | struct adouble * | ad, |
| unsigned int | dateoff, | ||
| uint32_t | date ) |
| 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.
| aint_p | AFP date-time to be converted. |
| offset_dir | Which direction we want to convert the timestamp. |