Tutorial Gateway

  • C
  • C#
  • Python
  • SQL
  • Java
  • JS
  • BI Tools
    • Informatica
    • Talend
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • R Tutorial
    • Alteryx
    • QlikView
  • More
    • C Programs
    • C++ Programs
    • Go Programs
    • Python Programs
    • Java Programs
  • MySQL

MySQL UTC_TIME Function

MySQL UTC_Time function is one of the MySQL Date Functions, which returns the current UTC time value in HH:MM:SS or HHMMSS format. The basic syntax of the UTC time Function in MySQL is as shown below:

UTC_TIME;

UTC_TIME();

MySQL UTC_TIME Example

The following query shows you the basic use of this MySQL UTC time function.

SELECT UTC_TIME;

SELECT UTC_TIME();
MySQL UTC_TIME Function 2

As you can see, both the above statements are showing current UTC time in HH:MM:SS format. This Date Function example shows what happens when adding a few seconds to this UTC Time function.

SELECT UTC_TIME, UTC_TIME + 0, UTC_TIME + 4;

SELECT UTC_TIME(), UTC_TIME() + 0, UTC_TIME() + 14;
MySQL UTC_TIME Function 3

As you can see, it has added those extra seconds to current MySQL UTC time and displaying the UTC time in HHMMSS string format

Filed Under: MySQL

  • How to Download MySQL
  • Install MySQL on Windows
  • MySQL Create Database
  • MySQL Delete Database
  • MySQL Create Table
  • MySQL Drop Table
  • MySQL SELECT Statement
  • MySQL ALIAS Column
  • MySQL Distinct
  • MySQL Insert Statement
  • MySQL Delete
  • MySQL Truncate Table
  • MySQL WHERE Clause
  • MySQL Order By
  • MySQL Group By
  • MySQL Having Clause
  • MySQL LIMIT
  • MySQL Arithmetic Operators
  • MySQL COALESCE Function
  • MySQL AND Operator
  • MySQL NOT Operator
  • MySQL OR Operator
  • MySQL XOR Operator
  • MySQL BETWEEN Operator
  • MySQL Not Between Operator
  • MySQL GREATEST Function
  • MYSQL LEAST Function
  • MySQL LIKE Operator
  • MySQL NOT LIKE Operator
  • MySQL IFNULL Operator
  • MySQL NULLIF Operator
  • MySQL INTERVAL Operator
  • MySQL IS Operator
  • MySQL IN Operator
  • MySQL NOT IN Operator
  • MySQL IS NOT NULL
  • MySQL IS NULL
  • MySQL Inner Join
  • MySQL Cross Join
  • MySQL Right Join
  • MySQL Left Join
  • MySQL Aggregate Functions
  • MySQL Date Functions
  • MySQL Date Function
  • MySQL String Functions
  • MySQL Numeric Functions

Copyright © 2021· All Rights Reserved by Suresh.
About | Contact | Privacy Policy