Time handling

Time handling

Functions

Description

Functions

itdb_time_get_mac_time ()

time_t
itdb_time_get_mac_time (void);

itdb_time_get_mac_time is deprecated and should not be used in newly-written code.

kept for compatibility with older code, directly use g_get_current_time() or time(NULL) instead

Gets the current time in a format appropriate for storing in the libgpod data structures

Returns

current time


itdb_time_mac_to_host ()

time_t
itdb_time_mac_to_host (time_t time);

itdb_time_mac_to_host is deprecated and should not be used in newly-written code.

It's been kept for compatibility with older code, but this function is now a no-op

Converts a timestamp from libgpod format to host system timestamp.

Parameters

time

time expressed in libgpod format

 

Returns

timestamp for the host system


itdb_time_host_to_mac ()

time_t
itdb_time_host_to_mac (time_t time);

itdb_time_host_to_mac is deprecated and should not be used in newly-written code.

It's been kept for compatibility with older code, but this function is now a no-op

Convert host system timestamp to libgpod format timestamp

Parameters

time

time expressed in host unit

 

Returns

a libgpod timestamp

Types and Values