Q:

convert datetime to timeticks in php and mysql

i want to convert datetime.now() to ticks, like is the time is 4:00 PM on june 18th 2010, i want it to be 20100618160000, or some complex number like this. I want to use this number and another field in my database as the primary keys combination to retrieve data. I am using php and mysql so it would be very helpful if someone could send me some code for the same. Thanks. 
SJ

A:

Use strtotime to parse any string representation of a date and time into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC)
http://us2.php.net/manual/en/function.strtotime.php

