Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Local Time to GMT
#1
Need a function to convert local time to GMT time.

It is not just enough to know the offset from GMT to make the conversion, that would be easy. Depending on Daylight Saving, the offset changes by on hour.

Is there any way to grab whether or not a computer is in Daylight Saving or not from windows so this can be factored into an offset from GMT?

Thanks,
Jim
#2
Macro Macro1569
Code:
Copy      Help
DateTime t
t.FromComputerTime
out t.ToStr
t.UtcFromLocal
out t.ToStr
#3
Thanks bunches. I looked for a function in QM assuming there would already be something there.
Thanks for the point in the direction.


Forum Jump:


Users browsing this thread: 1 Guest(s)