RAVE
|
Object for managing date and time. More...
#include "rave_datetime.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include <string.h>
#include <time.h>
#include <stdio.h>
Classes | |
struct | _RaveDateTime_t |
Represents a date time instance. More... | |
Macros | |
#define | __USE_XOPEN 1 |
#define | _XOPEN_SOURCE 700 |
Functions | |
int | RaveDateTime_setTime (RaveDateTime_t *dt, const char *value) |
Sets the nominal time. | |
const char * | RaveDateTime_getTime (RaveDateTime_t *dt) |
Returns the nominal time. | |
int | RaveDateTime_setDate (RaveDateTime_t *dt, const char *value) |
Sets the nominal date. | |
const char * | RaveDateTime_getDate (RaveDateTime_t *dt) |
Returns the nominal date. | |
int | RaveDateTime_strptime (char *yyyymmddHHMMSS, struct tm *ts) |
int | RaveDateTime_compare (RaveDateTime_t *self, RaveDateTime_t *other) |
Compares self with another datetime object. | |
Variables | |
RaveCoreObjectType | RaveDateTime_TYPE |
Type definition to use when creating a rave object. | |
Object for managing date and time.
int RaveDateTime_compare | ( | RaveDateTime_t * | self, |
RaveDateTime_t * | other ) |
Compares self with another datetime object.
If the datetime is equal, 0 is returned, if self is before other a negative value is returned and if self is after other a positive number is returned.
const char * RaveDateTime_getDate | ( | RaveDateTime_t * | dt | ) |
Returns the nominal date.
[in] | dt | - self |
const char * RaveDateTime_getTime | ( | RaveDateTime_t * | dt | ) |
Returns the nominal time.
[in] | dt | - self |
int RaveDateTime_setDate | ( | RaveDateTime_t * | dt, |
const char * | value ) |
Sets the nominal date.
[in] | dt | - self |
[in] | value | - the date in the format YYYYMMDD |
int RaveDateTime_setTime | ( | RaveDateTime_t * | dt, |
const char * | value ) |
Sets the nominal time.
[in] | dt | - self |
[in] | value | - the time in the format HHmmss |
RaveCoreObjectType RaveDateTime_TYPE |
Type definition to use when creating a rave object.