- time: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
// in examples below, this script was run at 30.10.2021
echo date("Y-m-d H:i:s\n", strtotime("+1.5 year", time()));
echo date("Y-m-d H:i:s\n");
echo date("Y-m-d H:i:s\n", strtotime("-1.5 year", time()));
?>