Welcome to Sign in | Help

Re: timezone offset and dst

  •  03-05-2012, 8:57 PM

    Re: timezone offset and dst

    l-am vazut, l-am citit.
    Nu pot folosi clr din pacate. Trebuie sa fie doar sql.

    Am gasit http://www.mssqltips.com/sqlservertip/1372/daylight-savings-time-functions-in-sql-server/ care te ajuta sa stii daca este activat DST sau nu. Folosind aceasta functie, cred ca pot folosi si SWITCHOFFSET. Functia asta primeste un parametru time_zone.

    conform cu msdn time_zone : "Is a character string in the format [+|-]TZH:TZM or a signed integer (of minutes) that represents the time zone offset, and is assumed to be daylight-saving aware and adjusted."

    Insa nu stiu cum sa ii pasez parametru. Adica sa il ajustez in functie de DST.
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems