PHP: Timestamp validator and converter
<?php /* * Timestamp validator and converter * {cc} Owen Mundy ~ owenmundy.com * */ function convert_date($string) { // make sure it is a string with a number && > 1992-05-07 && < 2033-05-18 if ( ctype_digit($string) && $string >= 800000000 && $string <= 1999999999 ) { […]
You must be logged in to post a comment.