J
J
Justique2016-04-19 01:17:21
Kohana
Justique, 2016-04-19 01:17:21

Sample timestamp on propel?

Good evening, the task is to implement a selection filter from the database.
There are:
1. input (date)/(datetime)
2. Cell in the database ('Mydate' int) containing unix timestamp, approx( 1460407052 ).
Propel is used to work with the database
An example of my use

$date = strtotime($filter['date']);
            $query->filterByMydate('%' . $date . '%', \Propel\Runtime\ActiveQuery\Criteria::LIKE);

Tell me how you need to register the filter, so that the selection by date would work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question