Windows version
mkdir C:\path\to\your\project
cd C:\path\to\your\projectDocument included in the project https://github.com/fawno/Modbus
https://github.com/fawno/Modbus/blob/master/DDS238-2%20ZN-S%20Modbus.md
| Register(s) | Meaning | Scale Unit | Data format | R/W |
|---|
| <?php | |
| ini_set('date.timezone', 'Europe/Madrid'); | |
| define('HT', "\x09"); // \x09 \t Horizontal Tab | |
| define('LF', "\x0A"); // \x0A \n Line feed | |
| // Calculamos el inicio del DST: último domingo de marzo (2015-03-29 00:00:00 para 2015). | |
| $date10 = strtotime('last sunday of march'); | |
| echo strftime('$date10 = strtotime("last sunday of march"); => %Y-%m-%d %H:%M:%S', $date10), LF; | |
| // Añadimos un día a $date10 de la manera correcta (2015-03-30 00:00:00 para 2015). |
| <?php | |
| namespace App\Shell; | |
| if (!extension_loaded('win32service')) dl('php_win32service.dll'); | |
| use Cake\Core\Configure; | |
| use Cake\Console\Shell; | |
| use Cake\Log\Log; | |
| Log::drop('debug'); |
| <?php | |
| namespace PHP81_BC; | |
| /** | |
| * Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible) | |
| * This provides a cross-platform alternative to strftime() for when it will be removed from PHP. | |
| * Note that output can be slightly different between libc sprintf and this function as it is using ICU. | |
| * | |
| * Usage: | |
| * use function \PHP81_BC\strftime; |