Hi.

im trying to convert this code into C# but not sure where to begin. maybe because ive been too sucked into VB6!

Code:
Private Function GMT_OFFSET() As Integer
    '****DECLARE VARIABLES
    Dim dtNow As Date, dtEngland As Date
    Dim dtGMT As SYSTEMTIME
    '****GET SYSTEM TIME INFORMATION
    Call GetSystemTime(dtGMT)
    dtNow = Now
    dtEngland = dtGMT.wYear & "-" & dtGMT.wMonth & "-" & dtGMT.wDay & " " & dtGMT.wHour & ":" & dtGMT.wMinute & ":" & dtGMT.wSecond
    '****RETURN QUARTER HOURS
    GMT_OFFSET = DateDiff("n", dtEngland, dtNow) \ 15
End Function
I know GetSystemTime is a Win32 API but I am sure we dont need to do PInvoke in C# but instead just use the DateTime/TimeSpan objects and the globalization is needs be.

if the above can be translated into VB.NET then thats fine, I can easily translate to C# (but be sure it is using pure .NET)