![]() |
![]() |
![]() |
libgpod Reference Manual | ![]() |
---|---|---|---|---|
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);
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. |
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 |