Skip to content

Instantly share code, notes, and snippets.

Last active Jan 15, 2019
What would you like to do?

Validate string for PHP DateInterval. (P or PT, then any number with no leading zeros. At the end H for hour interval and W,D or M for weeks, days and months)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment