is there a function in SQL Server that returns the difference between UTC time and local server time?
If you are using SQL 2008, then using datetimeoffset and related functions is much better. But, assuming you are talking about the current offset, you can do something like:
DATEDIFF(minute, GETUTCDATE(), GETDATE())
Source: https://habr.com/ru/post/1787615/More articles:The volume of imported modules / functions in Python - scopeAdd a column with data populated from another column - sqlStandalone database? - relational-databaseFind how many times each number appears in the list - listParsing XML / XHTML with Regex - domRegular expression. Match everything except the first letter in each word in a sentence - regexThe regex that I use does not allow characters - c #If all action classes are listed in struts.xml - javaTo restart the application from the main screen, and not from the screen that we left on - objective-cHow to change default default LookAndFeel for the whole application? - .netAll Articles