![]() | ![]() | ![]() | Libbeagle Reference Manual | ![]() |
---|
beagle-timestampbeagle-timestamp — |
BeagleTimestamp* beagle_timestamp_new_from_string (const char *str); BeagleTimestamp* beagle_timestamp_new_from_unix_time (time_t time); void beagle_timestamp_free (BeagleTimestamp *timestamp); gboolean beagle_timestamp_to_unix_time (BeagleTimestamp *timestamp, time_t *time);
BeagleTimestamp* beagle_timestamp_new_from_string (const char *str);
Creates a newly allocated BeagleTimestamp from the given string. The string should be of the following format, "2005-06-23T10:05:0000000+01:00".
str : | a string |
Returns : | the newly allocated BeagleTimestamp. |
BeagleTimestamp* beagle_timestamp_new_from_unix_time (time_t time);
Creates a newly allocated BeagleTimestamp from time
.
time : | a time_t |
Returns : | the newly created BeagleTimestamp. |
void beagle_timestamp_free (BeagleTimestamp *timestamp);
Frees the memory allocated by the given BeagleTimestamp.
timestamp : | a BeagleTimestamp |
gboolean beagle_timestamp_to_unix_time (BeagleTimestamp *timestamp, time_t *time);
Converts the given BeagleTimestamp to a unix time_t.
timestamp : | a BeagleTimestamp |
time : | a time_t |
Returns : | TRUE on success and otherwise FALSE .
|
<< BeagleEmptyResponse | Query API >> |