How can you get unixtimestamp from Phalcon models. Currently I am getting the timestamps in string format like 2015-08-31 13:28:20. Is there a way to use like UNIX_TIMESTAMP(myTime) in model getters?
I think you may be looking for strtotime
php function
echo strtotime("2015-08-31 13:28:20");
Will output 1441042100
Im pretty sure that there is no out-of-box solution for you right now in Phalcon. One thing that crosses my mind is to use skipAttributesOnCreate([]);
(docs) on column that has its default set in SQL to CURRENT_TIMESTAMP and than harvest it in getter method.