Difference between revisions of "DATE TIME()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
m (Text replace - "lianjaapi.h" to "lianja_api.h")
Line 7: Line 7:
 
==SYNOPSIS==
 
==SYNOPSIS==
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
char *DATE_TIME
 
char *DATE_TIME
Line 25: Line 25:
  
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
lianjaapi_date_time()
 
lianjaapi_date_time()

Revision as of 06:49, 11 April 2013

PURPOSE

Return the current time

SYNONYM

api_date_time()

SYNOPSIS

#include "lianja_api.h"
 
char	*DATE_TIME
 
<input parameters>
none
 
<output parameters>
none

DESCRIPTION

The DATE_TIME() function will return will return the current system in the 24 hour format HH:MM:SS.

EXAMPLE

The following example stores the current system into the character pointer "time".

#include "lianja_api.h"
 
lianjaapi_date_time()
{
    char	*time()
 
    time = DATE_TIME();
 
    _retc( time );
}

SEE ALSO

_parinfa(), _parinfo(), _pards(), _retds(), ISDATE(), DATE_AMPM(), DATE_CDOW(), DATE_CMONTH(), DATE_CTOD(), DATE_DATE(), DATE_DAY(), DATE_DOW(), DATE_DTOC(), DATE_DTOS(), DATE_MONTH(), DATE_STOD(), DATE_YEAR()