$time = date("YmdHis"); $mintimeprep = "1000000"; $mintime = $time-$mintimeprep; print $mintime;
I can't see why that won't work but it jsut returns things like 2.00302152003E+013 anyone know why and more importantly how to get it to work?
You've mixed up what the date() and time() functions do:
<?php $time = time(); $mintimeprep = "1000000"; $mintime = $time-$mintimeprep; print date("Y m d H i s", $mintime); ?>