RAVE
|
Object for managing date and time. More...
#include "rave_object.h"
Go to the source code of this file.
Typedefs | |
typedef struct _RaveDateTime_t | RaveDateTime_t |
Defines a Rave date/time. | |
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_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. | |
typedef struct _RaveDateTime_t RaveDateTime_t |
Defines a Rave date/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 |
|
extern |
Type definition to use when creating a rave object.