How FROM_UNIXTIME() Works in MariaDB

In MariaDB, FROM_UNIXTIME() is a built-in date and time function that returns a datetime value based on a given unix timestamp.

You pass the unix timestamp to the function when you call it.

The result is returned in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS.uuuuuu format, depending on whether the function is used in a string or numeric context.

The value is expressed in the current time zone.

Read more

How QUARTER() Works in MariaDB

In MariaDB, QUARTER() is a built-in date and time function that returns the quarter from a given date expression.

It accepts one argument, which is the date you want to extract the quarter from.

It returns the quarter as a number in the range 1 to 4. For dates with zero months (e.g. 0000-00-00 or 2025-00-00), the result is 0.

Read more