User talk:GregJPreece
From Joomla! Documentation
The last code example looks to be off in that it suggests the toSQL function would return a Unix second string. I’m assuming it’s a small typo. Unfortunately I don’t currently have the ability to fix it yet, and hopefully this entry is a reasonable way of addressing the issue.
Outputting Dates as Unix Timestamps
A Unix timestamp is expressed as the number of seconds that have passed since the Unix Epoch (the first second of Jan 1st 1970).
$date = new Date('20121201T152000Z');
$date->toSQL(); // 1354375200
from https://docs.joomla.org/index.php?title=How_to_use_JDate&diff=640698&oldid=635076