Main Board > Language

TCB(44) Always a Positive Number?

(1/1)

steezware:
Here in Utah the value of TCB(44) is 21600, or 6 hours. Applying TCB(45) for DST I get 7 hours, but this number is positive and my GMT is actually -7. Since I am not in a GMT-0 thru GMT+12 zone and cannot test this, does TCB(44) return negative for those time zones between Greenwich and the International Date Line?

Allen Miglore:
I've found tcb(44) is negative east of 0-time UTC.  You can add the value to local time to get UTC or subtract it from UTC to get local time.  I've never had to deal with tcb(45) as tcb(44) takes it into account.  Right now, on my local systems, tcb(44) is 25200, so represents the 7-hour offset when California is in daylight savings time.

steezware:
Thx, Allen!

Navigation

[0] Message Index

Go to full version