Hi Chris,
You may try:
# $t = chartTime value
$yyyymmdd = getChartYMD($t);
$unix_timeStamps = mktime(floor(fmod($t, 86400) / 3600), floor(fmod($t, 3600) / 60), fmod(t, 60), floor(($yyyymmdd % 10000) / 100), $yyyymmdd % 100, floor($yyyymmdd / 10000));
Hope this can help.
Regards
Peter Kwan |