Skip to content

Instantly share code, notes, and snippets.

@heiglandreas
Created September 11, 2018 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heiglandreas/81b320ce57b38e1cd26dc1d138aa3e6c to your computer and use it in GitHub Desktop.
Save heiglandreas/81b320ce57b38e1cd26dc1d138aa3e6c to your computer and use it in GitHub Desktop.
Add minutes to a datetime
$dt = new DateTimeImmutable();
$minute = new DateInterval('PT1M');
$dt = $dt->add($minute);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment