일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 윈도우
- String Functions and Operators
- Oracle
- Date and Time Functions
- Date and Time Function
- 티베로
- MySQL
- Sring Functions and Operators
- HTTP
- Tibero
- 방화벽
- SVN
- 오라클
- 전자정부 표준프레임워크
- String Function and Operators
- String Functions and Date Operators
- Data and Time Functions
- 전자정부표준프레임워크
- Today
- Total
웹이야기
MySQL CONVERT_TZ() 본문
MySQL 날짜함수, 시간함수
CONVERT_TZ()
CONVERT_TZ(dt, from_tz, to_tz)
의 형태
- 특정 시간에 대해 타임존(time zone)을 변경하여 변경된 시간을 return 하는 함수정도?
CONVERT_TZ() converts a datetime value dt from the time zone given by from tz to the the time zone given by to_tz and returns the resulting value. This function retuns NULL if the arguments are invalid.
If the value falls out the supported range of the TIMESTAMP type when converted from from_tz to UTC, no conversion occurs.
mysql> SELECT CONVERT_TZ('2004-01-01 12:00:00', '+00:00', '+10:00') ;
+-------------------------------------------------------+
| CONVERT_TZ('2004-01-01 12:00:00', '+00:00', '+10:00') |
+-------------------------------------------------------+
| 2004-01-01 22:00:00 |
+-------------------------------------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL CURRENT_DATE, CURRENT_DATE() (0) | 2020.04.01 |
---|---|
MySQL CURDATE() (0) | 2020.04.01 |
MySQL ADDTIME() (0) | 2020.04.01 |
MySQL ADDDATE() (0) | 2020.04.01 |
MySQL Date and Time Functions (0) | 2020.03.31 |