Top | ![]() |
![]() |
![]() |
![]() |
time_t | camel_search_util_add_months () |
gint64 | camel_search_util_str_to_time () |
time_t | camel_search_util_make_time () |
gint | camel_search_util_compare_date () |
guint64 | camel_search_util_hash_message_id () |
time_t camel_search_util_add_months (time_t t
,gint months
);
Increases time t
by the given number of months (or decreases, if
months
is negative).
Since: 3.58
gint64
camel_search_util_str_to_time (const gchar *str
);
Converts a string representation to a time_t (as gint64).
When str
is NULL
, returns -1.
Since: 3.58
time_t camel_search_util_make_time (gint argc
,CamelSExpResult **argv
);
Implementation of 'make-time' function, which expects one argument, a string or an integer, to be converted into time_t.
Since: 3.58
gint camel_search_util_compare_date (gint64 datetime1
,gint64 datetime2
);
Compares date portion of the two date-time values, first converted
into the local time zone. The returned value is like with strcmp()
.
datetime1 |
a time_t-like value of the first date-time |
|
datetime2 |
a time_t-like value of the second date-time |
0 when the dates are equal, < 0 when first is before second and > 0 when the first is after the second date
Since: 3.58
guint64 camel_search_util_hash_message_id (const gchar *message_id
,gboolean needs_decode
);
Calculates a hash of the Message-ID header value message_id
.
message_id |
a raw Message-ID header value |
|
needs_decode |
whether the |
Since: 3.58