Difference between revisions of "DATE AMPM()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) m (Text replace - "lianjaapi.h" to "lianja_api.h") |
||
Line 7: | Line 7: | ||
==SYNOPSIS== | ==SYNOPSIS== | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
char *DATE_AMPM() | char *DATE_AMPM() | ||
Line 25: | Line 25: | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
lianjaapi_date_ampm() | lianjaapi_date_ampm() |
Latest revision as of 06:47, 11 April 2013
PURPOSE
Return the time based on a 12 hour clock
SYNONYM
api_date_ampm()
SYNOPSIS
#include "lianja_api.h" char *DATE_AMPM() <input parameters> none <output parameters> none
DESCRIPTION
The DATE_AMPM() function returns the current time based on a 12 hour clock as a character string followed by "am" or " pm".
EXAMPLE
The following example stores the current time in ampm format to the character pointer current_time.
#include "lianja_api.h" lianjaapi_date_ampm() { char *current_time; current_time = DATE_AMPM(); retc( current_time ); }
SEE ALSO
_parinfa(), _parinfo(), _pards(), _retds(), ISDATE(), DATE_CDOW(), DATE_CMONTH(), DATE_CTOD(), DATE_DATE(), DATE_DAY(), DATE_DOW(), DATE_DTOC(), DATE_DTOS(), DATE_MONTH(), DATE_STOD(), DATE_TIME(), DATE_YEAR()