How CURTIME() Works in MariaDB

In MariaDB, CURTIME() is a built-in date and time function that returns the current time.

The time is returned in either 'HH:MM:SS' or HHMMSS.uuuuuu format, depending on whether the function is being used in a string or numeric context.

You also have the option of specifying the microsecond precision.

Read more

How to Set Up Named Time Zones in MariaDB

If you want to use named time zones in MariaDB, you’ll need to make sure they’ve been configured.

By “named time zones”, I mean being able to use strings like America/Los_Angeles instead of −08:00 or −07:00 when specifying the time zone. For example, when using the CONVERT_TZ() function.

Here’s how to configure named time zones in MariaDB.

Read more