DATE DATETIME()

From Lianjapedia
Jump to: navigation, search

PURPOSE

Return the current system date and time

SYNONYM

api_date_datetime()

SYNOPSIS

#include "lianja_api.h"
 
char	*DATE_DATETIME()
 
<input parameters>
none
 
<output parameters>
none

DESCRIPTION

The DATE_DATETIME() function will return the current system date and time as a character string. The date and time format returned is specified with the SET DATE, SET CENTURY, SET MARK, SET HOURS and SET SECONDS commands.

EXAMPLE

The following example returns the current system date and time as a string.

#include "lianja_api.h"
 
lianjaapi_date_datetime()
{
    _retc(DATE_DATETIME());
}

SEE ALSO

_parts(), _retts(), ISDATETIME(), DATE_STOT(), DATE_TTOS()