Freitag, 20. Juni 2014

MySQL function to get the current timestamp in SECONDS

Good one.. I had to wander far away to find it :)

SELECT DATEDIFF(s,'01.01.1970',GETDATE())

returns something like:  1403262470

Keine Kommentare:

Kommentar veröffentlichen