Cross-platform C SDK logo

Cross-platform C SDK

Dates

❮ Back
Next ❯
This page has been automatically translated using the Google Translate API services. We are working on improving texts. Thank you for your understanding and patience.

Date manipulation functions.


Functions

intdate_cmp (...)
String*date_DD_MM_YYYY_HH_MM_SS (...)
String*date_YYYY_MM_DD_HH_MM_SS (...)
const char_t*date_month_en (...)
const char_t*date_month_es (...)

date_cmp ()

Compare two dates. The most recent date is considered greater.

int
date_cmp(const Date *date1,
         const Date *date2);
date1

First date to compare.

date2

Second date to compare.

Return

Comparison result.


date_DD_MM_YYYY_HH_MM_SS ()

Convert a date to string, with the format DD/MM/YYYY-HH:MM:SS.

String*
date_DD_MM_YYYY_HH_MM_SS(const Date *date);
date

Date.

Return

String object with conversion.


date_YYYY_MM_DD_HH_MM_SS ()

Convert a date to string, with the format YYYY/MM/DD-HH:MM:SS.

String*
date_YYYY_MM_DD_HH_MM_SS(const Date *date);
date

Date.

Return

String object with conversion.


date_month_en ()

Get the name of the month, in English.

const char_t*
date_month_en(const month_t month);
month

The month, usually obtained with btime_date.

Return

UTF8 string with the name (January, February, ...).


date_month_es ()

Get the name of the month, in Spanish.

const char_t*
date_month_es(const month_t month);
month

The month, usually obtained with btime_date.

Return

UTF8 string with the name (Enero, Febrero, ...).

❮ Back
Next ❯