|
Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
|
#include <DateFormatter.h>
Date formatting and parsing.
Definition at line 48 of file DateFormatter.h.
Properties | |
| const char * | fmt |
| The UTF-8 encoded format string. More... | |
| Object | object |
| The superclass. More... | |
Properties inherited from Object | |
| Class * | clazz |
| Every instance of Object begins with a pointer to its Class. More... | |
Methods | |
| Class * | _DateFormatter (void) |
| The DateFormatter archetype. More... | |
| Date * | dateFromCharacters (const DateFormatter *self, const char *chars) |
| Parses a Date from the specified UTF-8 encoded C string. More... | |
| Date * | dateFromString (const DateFormatter *self, const String *string) |
| Parses a Date from the specified String. More... | |
| DateFormatter * | initWithFormat (DateFormatter *self, const char *fmt) |
| Initializes a DateFormatter with the specified format string. More... | |
| String * | stringFromDate (const DateFormatter *self, const Date *date) |
| Yields a String representation of the specified Date instance. More... | |
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 | |
| DateFormatterInterface * | interface |
| The interface. More... | |
Protected Attributes inherited from Object | |
| ObjectInterface * | interface |
| The interface. More... | |
| const char* DateFormatter::fmt |
The UTF-8 encoded format string.
Definition at line 64 of file DateFormatter.h.
|
protected |
The interface.
Definition at line 59 of file DateFormatter.h.
| Object DateFormatter::object |
The superclass.
Definition at line 53 of file DateFormatter.h.
| Class * _DateFormatter | ( | void | ) |
The DateFormatter archetype.
Definition at line 132 of file DateFormatter.c.
| Date * dateFromCharacters | ( | const DateFormatter * | self, |
| const char * | chars | ||
| ) |
Parses a Date from the specified UTF-8 encoded C string.
| self | The DateFormatter. |
| chars | The UTF-8 encoded C string to parse. |
NULL on error. Definition at line 40 of file DateFormatter.c.
| Date * dateFromString | ( | const DateFormatter * | self, |
| const String * | string | ||
| ) |
Parses a Date from the specified String.
| self | The DateFormatter. |
| string | The String to parse. |
NULL on error. Definition at line 63 of file DateFormatter.c.
| DateFormatter * initWithFormat | ( | DateFormatter * | self, |
| const char * | fmt | ||
| ) |
Initializes a DateFormatter with the specified format string.
| self | The DateFormatter. |
| fmt | The format string. |
NULL on error. Definition at line 76 of file DateFormatter.c.
| String * stringFromDate | ( | const DateFormatter * | self, |
| const Date * | date | ||
| ) |
Yields a String representation of the specified Date instance.
| self | The DateFormatter. |
| date | The Date to format. |
Definition at line 90 of file DateFormatter.c.