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
  • 10,148
  • 7
  • 57
  • 107
Michal
  • 3,584
  • 9
  • 47
  • 74

1 Answers1

3

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

Alex
  • 32,506
  • 16
  • 106
  • 171