CURRENT_TIMEZONE_ID
nondeterministic time source
What changes
- Input
- system clock or time zone of the server
- Output or change
- current date/time value
- Return type
- varchar
Syntax at a glance
CURRENT_TIMEZONE_ID ( )
Work example
Read the SQL Server host time-zone identifier for diagnostics.
Test month end, leap day, offset, and the session language that will run the query.
Check your work Treat it as host configuration and check time-zone rule changes outside SQL Server.
Open Microsoft Learn for full syntax, permissions, and details for your version.