DATE DATETIME()

From Recital Documentation Wiki
Jump to: navigation, search

PURPOSE

Return the current system date and time


SYNONYM

api_date_datetime()


SYNOPSIS

#include "dbapi.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 Recital 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 "dbapi.h"
 
dbapi_date_datetime()
{
    _retc(DATE_DATETIME());
}


SEE ALSO

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