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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.