3

Possible Duplicate:
Is it possible to get UNIX time from such date 2011-02-27 02:04:46?

How can I convert a PHP timestamp like 2011-05-04 10:35:57 to Unix epoch time (in seconds)?

TRiG
  • 9,687
  • 6
  • 54
  • 105
Michal
  • 3,496
  • 7
  • 44
  • 70

1 Answers1

3

strtotime("2011-05-04 10:35:57")

Alex
  • 29,618
  • 13
  • 100
  • 157