/** * Retrieves a date or datetime fields as a unix timestamp * @param string strKey property to be retrieved */ public function get_timestamp($strKey) { return MyActiveRecord::TimeStamp($this->{$strKey}); }