20require_once DOL_DOCUMENT_ROOT.
'/api/class/api.class.php';
21require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
48 global $dolibarr_main_prod;
53 'dolibarr_version' => DOL_VERSION,
58 if (empty($dolibarr_main_prod)) {
59 $response[
'success'][
'environment'] =
'non-production';
60 $response[
'success'][
'timestamp_now_utc'] =
dol_now();
61 $response[
'success'][
'timestamp_php_tz'] = date_default_timezone_get();
__construct()
Constructor of the class.
index()
Get status (Dolibarr version)
dol_now($mode='auto')
Return date for now.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.