|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <Date.h>
Properties | |
| Object | object |
| The superclass. More... | |
| Time | time |
| The time. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
| Class * | _Date (void) |
| The Date archetype. More... | |
| Order | compareTo (const Date *self, const Date *other) |
| Compares this Date to another. More... | |
| Date * | date (void) |
| Returns a new Date with the current Time. More... | |
| Date * | dateWithTimeSinceNow (const Time interval) |
| Returns a new Date with the given Time since now. More... | |
| Date * | init (Date *self) |
| Date * | initWithTime (Date *self, const Time *time) |
| Time | timeSinceDate (const Date *self, const Date *date) |
| Time | timeSinceNow (const Date *self) |
| Time | timeSinceTime (const Date *self, const Time *time) |
Methods inherited from Object | |
| Class * | _Object (void) |
| The Object archetype. More... | |
| Object * | copy (const Object *self) |
| Creates a shallow copy of this Object. More... | |
| void | dealloc (Object *self) |
| Frees all resources held by this Object. More... | |
| String * | description (const Object *self) |
| int | hash (const Object *self) |
| Object * | init (Object *self) |
| Initializes this Object. More... | |
| _Bool | isEqual (const Object *self, const Object *other) |
| Tests equality of the other Object. More... | |
| _Bool | isKindOfClass (const Object *self, const Class *clazz) |
| Tests for Class hierarchy membership. More... | |
Protected Attributes | |
| DateInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
| Class * _Date | ( | void | ) |
The Date archetype.
Definition at line 222 of file Date.c.
| Date * date | ( | void | ) |
Initializes a Date with the specified time.
| self | The Date. |
| time | The desired Time. |
NULL on error. Definition at line 139 of file Date.c.
| self | The Date. |
Definition at line 168 of file Date.c.
| self | The Date. |
| time | A Time value. |
time. time is earlier than this Date, the returned interval will be negative. Definition at line 183 of file Date.c.