datetime

datetime

Synopsis

#define             TPL_TIME_FORMAT_DISPLAY_SHORT
#define             TPL_TIME_FORMAT_DISPLAY_LONG
time_t              tpl_time_get_current                (void);
time_t              tpl_time_get_local_time             (struct tm *tm);
time_t              tpl_time_parse                      (const gchar *str);
gchar *             tpl_time_to_string_utc              (time_t t,
                                                         const gchar *format);
gchar *             tpl_time_to_string_local            (time_t t,
                                                         const gchar *format);
gchar *             tpl_time_to_string_relative         (time_t t);

Description

Details

TPL_TIME_FORMAT_DISPLAY_SHORT

#define TPL_TIME_FORMAT_DISPLAY_SHORT "%H:%M"


TPL_TIME_FORMAT_DISPLAY_LONG

#define TPL_TIME_FORMAT_DISPLAY_LONG  "%a %d %b %Y"


tpl_time_get_current ()

time_t              tpl_time_get_current                (void);

Returns :


tpl_time_get_local_time ()

time_t              tpl_time_get_local_time             (struct tm *tm);

tm :

Returns :


tpl_time_parse ()

time_t              tpl_time_parse                      (const gchar *str);

str :

Returns :


tpl_time_to_string_utc ()

gchar *             tpl_time_to_string_utc              (time_t t,
                                                         const gchar *format);

t :

format :

Returns :


tpl_time_to_string_local ()

gchar *             tpl_time_to_string_local            (time_t t,
                                                         const gchar *format);

t :

format :

Returns :


tpl_time_to_string_relative ()

gchar *             tpl_time_to_string_relative         (time_t t);

t :

Returns :