zero_ZX Posted April 25, 2012 Share Posted April 25, 2012 Hi, Perhaps you can help me if I misunderstood anything in the documentation. This function should return a date: private function date2($timeStamp, $dateFormat = '%A, %d. %B %Y @ %T'){ return strftime($dateFormat, $timeStamp); } But it returns bool(false). Right, so this also applies if I put it like this: private function date2($timeStamp, $dateFormat = '%A, %d. %B %Y @ %T'){ return strftime($dateFormat); } It also happens in major functions and not just test ones. I'm on Windows, using codeiginiter framework. Quote Link to comment https://forums.phpfreaks.com/topic/261565-strftime/ Share on other sites More sharing options...
requinix Posted April 25, 2012 Share Posted April 25, 2012 %T (and others) isn't supported on Windows systems and strftime() will return false if you try to use it. Quote Link to comment https://forums.phpfreaks.com/topic/261565-strftime/#findComment-1340407 Share on other sites More sharing options...
silkfire Posted April 25, 2012 Share Posted April 25, 2012 %T is basically date('H:i:s'). Don't be lazy =P. The following strftime formats are not supported on Windows platform: '%e' '%u' '%V' '%C' '%g' '%G' '%l' '%P' '%r' '%R' '%T' '%D' '%F' '%s' '%n' '%t' '%%' Quote Link to comment https://forums.phpfreaks.com/topic/261565-strftime/#findComment-1340514 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.