public function format($format)
{
// convert alias string
if (in_array($format, array_keys($this->formats))) {
$format = $this->formats[$format];
}
// if valid unix timestamp...
if ($this->dateTime !== false) {
return jDateTime::strftime($format, $this->dateTime->getTimestamp(), $this->dateTime->getTimezone());
} else {
return false;
}
}