In MariaDB, ATAN()
is a built-in numeric function that returns the arctangent (inverse tangent) of its argument.
In other words, it returns the value whose tangent is the argument.
Continue readingIn MariaDB, ATAN()
is a built-in numeric function that returns the arctangent (inverse tangent) of its argument.
In other words, it returns the value whose tangent is the argument.
Continue readingIn MariaDB, UTC_TIMESTAMP()
is a built-in date and time function that returns the current UTC date and time.
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.
UTC stands for Coordinated Universal Time, and is the world standard for regulating time.
Continue readingIn MariaDB, UTC_TIME()
is a built-in date and time function that returns the current UTC time.
The result is returned in ‘HH:MM:SS’ or HHMMSS.uuuuuu format, depending on whether the function is used in a string or numeric context.
UTC stands for Coordinated Universal Time, and is the world standard for regulating time.
Continue readingIn MariaDB, UTC_DATE()
is a built-in date and time function that returns the current UTC date.
The result is returned in ‘YYYY-MM-DD’ or YYYYMMDD format, depending on whether the function is used in a string or numeric context.
UTC stands for Coordinated Universal Time, and is the world standard for regulating time.
Continue readingIn MariaDB, UNIX_TIMESTAMP()
is a built-in date and time function that returns a Unix timestamp, based on its argument (or lack of argument).
It works like this:
The inverse function of UNIX_TIMESTAMP()
is FROM_UNIXTIME()
.
In MariaDB, TO_SECONDS()
is a built-in date and time function that returns the number of seconds from year 0 to the given date or datetime expression.
In MariaDB, TIME_TO_SEC()
is a built-in date and time function that returns its time argument, converted to seconds.
In MariaDB, TIME_FORMAT()
is a built-in date and time function that formats a time value according to the given format string.
It works similar to the DATE_FORMAT()
function, except that the format string may only contain format specifiers for hours, minutes, and seconds.
It requires two arguments; the time and the format string.
Continue readingIn MariaDB, TIMESTAMPDIFF()
is a built-in date and time function that returns the difference between two date or datetime expressions.
In MariaDB, TIMESTAMPADD()
is a built-in date and time function that adds an integer expression interval to a given date or datetime expression.