웹이야기

MySQL UTC_TIME() 본문

D/MySQL

MySQL UTC_TIME()

yeon.Biju 2020. 4. 5. 12:46

MySQL 날짜함수, 시간함수

 

UTC_TIME()

   -

 

UTC_TIME, UTC_TIME([fsp])

의 형태

 

Returns the current UTC time as a value 'hh:mm:ss' or hhmmss format, depending on whether the function is used in string or numeric context.

 

If the fsp argument is given to sepcify a fractional seconds precision form 0 to 6, the return value includes a fractional seconds part of that many digits.

 

mysql> SELECT UTC_TIME(), UTC_TIME+0 ;
+------------+------------+
| UTC_TIME() | UTC_TIME+0 |
+------------+------------+
| 03:45:22   |      34522 |
+------------+------------+
1 row in set (0.00 sec)

 

mysql> SELECT UTC_TIME(3) ;
+--------------+
| UTC_TIME(3)  |
+--------------+
| 03:45:40.858 |
+--------------+
1 row in set (0.00 sec)

'D > MySQL' 카테고리의 다른 글

MySQL WEEK()  (0) 2020.04.05
MySQL UTC_TIMESTAMP()  (0) 2020.04.05
MySQL UTC_DATE()  (0) 2020.04.05
MySQL UNIX_TIMESTAMP()  (0) 2020.04.05
MySQL TO_SECONDS()  (0) 2020.04.05
Comments