- urlencode: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
- rand: documentation ( source)
<?php
echo date('Y-m-d H:i:s', strtotime('-'.rand(1,19).' min'));
echo urlencode(date('Y-m-d H:i:s', strtotime('-'.rand(1,19).' min')));