Hour with no leading zero in PHP

Two “secret” format strings for strftime are documented here:

  • %k — hour (24 hour clock) leading zero replaced with space
  • %l — hour (12 hour clock) leading zero replaced with space

Comments

Add new comment