11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 12 • DATE AND TIMEwww.it-ebooks.infoParameter Description Examples or Range%e Numerical day of month, no leading zero 26%g Same output as %G, but without the century 05%G Numerical year, behaving according to rules set by %V 2007%h Same output as %b Jan, Feb%H Numerical hour (24-hour clock), with leading zero 00 through 23%I Numerical hour (12-hour clock), with leading zero 01 through 12%j Numerical day of year 001 through 366%l 12-hour hour format, with space preceding single digit hours 1 through 12%m Numerical month, with leading zero 01 through 12%M Numerical minute, with leading zero 00 through 59%n Newline character \n%p Ante meridiem and post meridiem AM, PM%P lower case ante meridiem and post meridiem am, pm%r Equivalent to %I:%M:%S %p 05:18:21 PM%R Equivalent to %H:%M 17:19%S Numerical seconds, with leading zero 00 through 59%t Tab character \t%T Equivalent to %H:%M:%S 22:14:54%u Numerical weekday, where 1 = Monday 1 through 7%U Numerical week number, where the first Sunday of the year is thefirst day of the first week of the year17%V Numerical week number, where week 1 = first week with >= 4 days 01 through 53280

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!