Time handling

## Time handling Time handling — Helper functions to convert between Epoch time and Mac (iPod) time |

## Synopsis

    guint64     itdb_time_get_mac_time          (void);
    time_t      itdb_time_mac_to_host           (guint64 mactime);
    guint64     itdb_time_host_to_mac           (time_t time);

## Description

## Details

### itdb_time_get_mac_time ()

    guint64     itdb_time_get_mac_time          (void);

Gets the current time expressed in 'Mac' unit (ie in number of seconds since 1/1/1904).

Returns : | current time in 'Mac' unit.

### itdb_time_mac_to_host ()

    time_t      itdb_time_mac_to_host           (guint64 mactime);

Convert a Mac timestamp to host system time stamp -- modify this function if necessary to port to host systems with different start of Epoch. A "0" time will not be converted.

`mactime` : | time expressed in 'Mac' unit
Returns : | timestamp for the host system

### itdb_time_host_to_mac ()

    guint64     itdb_time_host_to_mac           (time_t time);

Convert host system timestamp to Mac time stamp -- modify this function if necessary to port to host systems with different start of Epoch

`time` : | time expressed in host unit
Returns : | a Mac timestamp