Jump to content

strftime()


stijn0713

Recommended Posts

hello,

 

setlocale(LC_ALL, 'nld_nld');

 

strftime('%A %d %B',$_SESSION['groep_afloop']) --> works

 

strftime('%A %e %B',$_SESSION['groep_afloop'])  --> doesn't work

 

I use these 2 statements above in a string. the string i thereafter use in sprintf().

 

Any ideas why %e won't work?   

 

'%A %e %B' should be:    zondag 7 februari

 

whereas

 

'%A %d %B'  is        zondag 07 februari

Link to comment
Share on other sites

Windows only: The %e modifier is not supported in the Windows implementation of this function. To achieve this value' date=' the %#d modifier can be used instead. The example below illustrates how to write a cross platform compatible function.[/quote']

 

 

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.