otuatail Posted February 25, 2010 Share Posted February 25, 2010 Hi. This function returns a larger value than it should $d = "25-Feb-2010 13:00:24"; echo "Start: " . $d . "<br>"; $t = mktime ($d); echo "End: " . date('d-M-Y H:i:s' ,$t) . "<br><br>"; Start: 25-Feb-2010 13:00:24 End: 26-Feb-2010 01:26:17 Any help on this please. TIA Desmond. Link to comment https://forums.phpfreaks.com/topic/193342-problems-with-mktime/ Share on other sites More sharing options...
otuatail Posted February 25, 2010 Author Share Posted February 25, 2010 Sorted. Use strtotime instead. mktime was created by a 5 year old with learning dificulties. H,i,s,n,j,Y Who dreamt this up? Link to comment https://forums.phpfreaks.com/topic/193342-problems-with-mktime/#findComment-1018023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.