Tell me how to display as short as possible on php
echo (date("d MY в H:i"));
with a random offset in minutes from the current time, for example, take 34 minutes?
time
$time = time() - 34 * 60; // секунды echo date('d MY в H:i', $time);
strtotime
$time = strtotime('-34 minutes'); echo date('d MY в H:i', $time);
Datetime
$date = new \DateTime('-34 minutes'); echo $date->format('d MY в H:i');
echo (date("d MY в H:i", time()-34));
Source: https://ru.stackoverflow.com/questions/526039/More articles:Change Array ValuesDouble word multiplicationUnique SQL sample by two fieldsthis in structureText editors greatly inhibitHtml output in WordPress pluginWhat program to open and read the .tad fileUIWebView does not show changes made using javascriptGolang: record of type map [string] interface {} {}The prohibition of duplicate records in the databaseAll Articles