TIMESTAMPADD() Examples – MySQL

In MySQL, the TIMESTAMPADD() function allows you to add a specified amount of time to a date or datetime value. You specify the unit to add, as well as how many of that unit to add. It accepts three arguments, which are used for the initial value, the amount to add, and the unit to use.

Read more

SUBTIME() Examples – MySQL

In MySQL, you can use the SUBTIME() function to subtract a time value from a time or datetime expression.

The way it works is, you provide two arguments; the first is a time or datetime value, and the second is a time value. The SUBTIME() function then subtracts the second argument from the first one and returns the result.

Read more

Full List of Locales in MySQL

This post contains a full list of locales supported by MySQL 8.0 that can be used as a value for the lc_time_names system variable. This locale controls the language used to display day and month names and abbreviations.

The following table lists these locale values, along with the language and region. These may be different to those supported by your operating system.

To set the locale, see How to Set the Locale for the Current Connection in MySQL.

Read more