Jump to content

date('i') minutes leading zero


electricshoe

Recommended Posts

Is there a no leading zero minute variable hidden somewhere in magicland? I'm assuming no since there isn't one in the manual.

 

If not is there an easy way for me to parse it in the date() function instead of writing something complicated?

 

Thanks ten million billion in advance ;D

Link to comment
https://forums.phpfreaks.com/topic/98215-datei-minutes-leading-zero/
Share on other sites

Ahh, i didn't know you typecast on a per-use basis like in C. Good to know.

 

That last one by rhodesa is by far the best and most efficient, unless you really need it to be a string (i'm not sure why you ever would with php though)

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.