21require_once DOL_DOCUMENT_ROOT.
'/api/class/api.class.php';
22require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
51 global $dolibarr_main_prod;
56 'dolibarr_version' => DOL_VERSION,
61 if (empty($dolibarr_main_prod)) {
62 $response[
'success'][
'environment'] =
'non-production';
63 $response[
'success'][
'timestamp_now_utc'] =
dol_now();
64 $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.