PxPlus User Forum

Main Board => Discussions => Language => Topic started by: steezware on July 10, 2023, 01:17:01 PM

Title: TCB(44) Always a Positive Number?
Post by: steezware on July 10, 2023, 01:17:01 PM
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?
Title: Re: TCB(44) Always a Positive Number?
Post by: Allen Miglore on July 10, 2023, 01:42:30 PM
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.
Title: Re: TCB(44) Always a Positive Number?
Post by: steezware on July 10, 2023, 02:03:58 PM
Thx, Allen!