Refine will be launching soon 🎉 Sign up for the early access list to stay up to date.
Refine for Laravel
A package by Hammerstone

UNIX Timestamp Condition

Hammerstone Refine has not launched yet. Sign up for the early access list to stay up to date!

The UnixTimestampCondition is an extension of the DateCondition, with the default attribute type set to "unix timestamp".

Therefore, the following two conditions are equivalent:

1// Using the UnixTimestampCondition condition.
2UnixTimestampCondition::make('published_at');
3 
4// Using the Date condition, but setting the attribute to timestamp.
5DateCondition::make('published_at')->attributeIsUnixTimestamp();

To see what else is available to you, please read the DateCondition documentation.