-2

I currently have a unix timestamp and would like to change it into something more user friendly like instead of "1389317006" I would want "Jan. 10, 2014 13:45". I looked into strtotime() but the PHP Manual said it returns a timestamp which isn't what I want.

Thanks for any answers in advance.

user3015565
  • 393
  • 3
  • 6
  • 16

1 Answers1

4

You're looking for the date function:

echo date("M. d, Y H:i", 1389317006);
// Prints: Jan. 10, 2014 01:23
ccKep
  • 5,786
  • 19
  • 31