libSBML C API
libSBML 5.8.0 C API
|
Date I/O.
Functions | |
Date_t * | Date_clone (const Date_t *date) |
Creates a deep copy of the given Date_t structure. More... | |
Date_t * | Date_createFromString (const char *date) |
Creates a date from a string. More... | |
Date_t * | Date_createFromValues (unsigned int year, unsigned int month, unsigned int day, unsigned int hour, unsigned int minute, unsigned int second, unsigned int sign, unsigned int hoursOffset, unsigned int minutesOffset) |
Creates a date optionally from the individual fields entered as numbers. More... | |
void | Date_free (Date_t *) |
Destroys this Date. More... | |
const char * | Date_getDateAsString (Date_t *date) |
Returns the Date as a string. More... | |
unsigned int | Date_getDay (Date_t *date) |
Returns the day from this Date. More... | |
unsigned int | Date_getHour (Date_t *date) |
Returns the hour from this Date. More... | |
unsigned int | Date_getHoursOffset (Date_t *date) |
Returns the hours of the offset from this Date. More... | |
unsigned int | Date_getMinute (Date_t *date) |
Returns the minute from this Date. More... | |
unsigned int | Date_getMinutesOffset (Date_t *date) |
Returns the minutes of the offset from this Date. More... | |
unsigned int | Date_getMonth (Date_t *date) |
Returns the month from this Date. More... | |
unsigned int | Date_getSecond (Date_t *date) |
Returns the seconds from this Date. More... | |
unsigned int | Date_getSignOffset (Date_t *date) |
Returns the sign of the offset from this Date. More... | |
unsigned int | Date_getYear (Date_t *date) |
Returns the year from this Date. More... | |
int | Date_representsValidDate (Date_t *date) |
int | Date_setDateAsString (Date_t *date, const char *) |
Sets the value of the date from a string. More... | |
int | Date_setDay (Date_t *date, unsigned int value) |
Sets the value of the day checking appropriateness. More... | |
int | Date_setHour (Date_t *date, unsigned int value) |
Sets the value of the hour checking appropriateness. More... | |
int | Date_setHoursOffset (Date_t *date, unsigned int value) |
Sets the value of the offset hour checking appropriateness. More... | |
int | Date_setMinute (Date_t *date, unsigned int value) |
Sets the value of the minute checking appropriateness. More... | |
int | Date_setMinutesOffset (Date_t *date, unsigned int value) |
Sets the value of the offset minutes checking appropriateness. More... | |
int | Date_setMonth (Date_t *date, unsigned int value) |
Sets the value of the month checking appropriateness. More... | |
int | Date_setSecond (Date_t *date, unsigned int value) |
Sets the value of the second checking appropriateness. More... | |
int | Date_setSignOffset (Date_t *date, unsigned int value) |
Sets the value of the offset sign checking appropriateness. More... | |
int | Date_setYear (Date_t *date, unsigned int value) |
Sets the value of the year checking appropriateness. More... | |
Date_t* Date_clone | ( | const Date_t * | date | ) |
Creates a deep copy of the given Date_t structure.
date | the Date_t structure to be copied |
Date_t* Date_createFromString | ( | const char * | date | ) |
Creates a date from a string.
date | a string representing the date. |
Date_t* Date_createFromValues | ( | unsigned int | year, |
unsigned int | month, | ||
unsigned int | day, | ||
unsigned int | hour, | ||
unsigned int | minute, | ||
unsigned int | second, | ||
unsigned int | sign, | ||
unsigned int | hoursOffset, | ||
unsigned int | minutesOffset | ||
) |
Creates a date optionally from the individual fields entered as numbers.
year | an unsigned int representing the year. |
month | an unsigned int representing the month. |
day | an unsigned int representing the day. |
hour | an unsigned int representing the hour. |
minute | an unsigned int representing the minute. |
second | an unsigned int representing the second. |
sign | an unsigned int representing the sign of the offset (0/1 equivalent to +/-). |
hoursOffset | an unsigned int representing the hoursOffset. |
minutesOffset | an unsigned int representing the minutesOffset. |
void Date_free | ( | Date_t * | date | ) |
Destroys this Date.
date | Date_t structure to be freed. |
const char* Date_getDateAsString | ( | Date_t * | date | ) |
Returns the Date as a string.
date | the Date_t structure to be queried |
unsigned int Date_getDay | ( | Date_t * | date | ) |
unsigned int Date_getHour | ( | Date_t * | date | ) |
unsigned int Date_getHoursOffset | ( | Date_t * | date | ) |
unsigned int Date_getMinute | ( | Date_t * | date | ) |
unsigned int Date_getMinutesOffset | ( | Date_t * | date | ) |
unsigned int Date_getMonth | ( | Date_t * | date | ) |
unsigned int Date_getSecond | ( | Date_t * | date | ) |
unsigned int Date_getSignOffset | ( | Date_t * | date | ) |
unsigned int Date_getYear | ( | Date_t * | date | ) |
int Date_representsValidDate | ( | Date_t * | date | ) |
int Date_setDateAsString | ( | Date_t * | date, |
const char * | str | ||
) |
Sets the value of the date from a string.
date | the Date_t structure to be set |
str | string representing the date to set. |
int Date_setDay | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the day checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the day to set. |
int Date_setHour | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the hour checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the hour to set. |
int Date_setHoursOffset | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the offset hour checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the hours of the offset to set. |
int Date_setMinute | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the minute checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the minute to set. |
int Date_setMinutesOffset | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the offset minutes checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the minutes of the offset to set. |
int Date_setMonth | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the month checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the month to set. |
int Date_setSecond | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the second checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the second to set. |
int Date_setSignOffset | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the offset sign checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the sign of the offset to set. |
int Date_setYear | ( | Date_t * | date, |
unsigned int | value | ||
) |
Sets the value of the year checking appropriateness.
date | the Date_t structure to be set |
value | an unsigned int representing the year to set. |