Jump to content

strptime new function (windows)


Ninjakreborn

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.