Truncates a date-time value, expressed as a Unix epoch time integer, to a given resolution and returns a corresponding Unix epoch time integer.
(integer) Unix epoch time integer, representing a datetime value
(string) Resolution - Extent to which the date time should be truncated, which can be one of:
(integer) Truncated date time value expressed as a Unix epoch time.
The following is an example of truncating 18-August-2017 19:18:03:
For further examples, see datetime handling .
Note that this function performs truncation, as opposed to rounding.