Ninjakreborn Posted February 25, 2008 Share Posted February 25, 2008 Does anyone have/know of a function that does the "EXACT" same thing strptime does (takes parameters in the same order, and does virtually the SAME thing to them) that'll work in windows. I need to replace a strptime function with something else that'll work in windows, however it's handled differently so I am hoping I can just replace $pdate = strptime($str, $format); with a call to another function that'll do the same thing. Link to comment https://forums.phpfreaks.com/topic/92951-strptime-new-function-windows/ Share on other sites More sharing options...
Ninjakreborn Posted February 26, 2008 Author Share Posted February 26, 2008 I still need this function if anyone has something? Link to comment https://forums.phpfreaks.com/topic/92951-strptime-new-function-windows/#findComment-476988 Share on other sites More sharing options...
roopurt18 Posted February 26, 2008 Share Posted February 26, 2008 I saw this comment in the documentation for strptime(): If you need strptime but are restricted to a php version which does not support it (windows or before PHP 5), note that MySQL since Version 4.1.1 offers (almost?) the same functionality with the STR_TO_DATE function. See http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html Link to comment https://forums.phpfreaks.com/topic/92951-strptime-new-function-windows/#findComment-477246 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.