94 #define QOF_MOD_TIME "qof-time" 97 #define QOF_NSECS 1000000000 238 qof_time_is_valid (
const QofTime * qt);
QofTime * qof_time_from_gdate(GDate *date)
Convert a GDate to a QofTime.
gchar * qof_time_stamp_now(void)
gboolean qof_time_set_day_end(QofTime *time)
set the given QofTime to the last second of that day.
QofTime * qof_time_add_secs_copy(QofTime *qt, QofTimeSecs secs)
Create a new QofTime, secs different to an original.
QofTime * qof_time_abs(QofTime *t)
QofTimeSecs qof_time_get_secs(const QofTime *time)
Get the number of seconds.
QofTime * qof_time_get_today_end(void)
gboolean qof_time_to_dmy(QofTime *t, guint8 *day, guint8 *month, guint16 *year)
QofTime * qof_time_copy(const QofTime *qt)
Create a copy of a QofTime.
void qof_time_set_secs(QofTime *time, QofTimeSecs secs)
Set the number of seconds.
QofTime * qof_time_new(void)
create an empty QofTime
QofTime * qof_time_from_time_t(time_t t, glong nanosecs)
GDate * qof_time_to_gdate(QofTime *time)
Convert QofTime to GDate.
gboolean qof_time_set_day_start(QofTime *time)
set the given QofTime to the first second of that day.
QofTime * qof_time_dmy_to_time(guint8 day, guint8 month, guint16 year)
glong qof_time_get_nanosecs(const QofTime *time)
Get the number of seconds.
QofTime * qof_time_get_current(void)
Get the current QofTime.
gboolean qof_time_set_day_middle(QofTime *t)
set the given QofTime to midday on the same day.
void qof_time_free(QofTime *qt)
Free a QofTime when no longer required.
gint qof_time_cmp(const QofTime *ta, const QofTime *tb)
void qof_time_add_secs(QofTime *qt, QofTimeSecs secs)
Add (or subtract) seconds from a QofTime.
QofTime * qof_time_get_today_start(void)
GTimeVal * qof_time_get_current_start(void)
gboolean qof_time_equal(const QofTime *ta, const QofTime *tb)
gboolean qof_time_to_time_t(QofTime *ts, time_t *t, glong *nanosecs)
void qof_time_set_nanosecs(QofTime *time, glong nano)
Set the number of seconds.
guint8 qof_time_last_mday(QofTime *ts)
QofTime * qof_time_set(QofTimeSecs t, glong nanosecs)
gint64 QofTimeSecs
Replacement for time_t.
struct QofTime64 QofTime
Use a 64-bit signed int QofTime.
QofTime * qof_time_from_tm(struct tm *tm, glong nanosecs)
Convert a broken-down into a QofTime.
void qof_time_from_gtimeval(QofTime *qt, GTimeVal *gtv)
Convert a QofTime to a GTimeVal.
gboolean qof_time_to_gtimeval(QofTime *qt, GTimeVal *gtv)
Convert a QofTime to a GTimeVal.
QofTime * qof_time_diff(const QofTime *ta, const QofTime *tb)
difference between two QofTimes.