PxPlus User Forum

Twitter Twitter Twitter

Author Topic: TCB(44) Always a Positive Number?  (Read 1192 times)

steezware

  • Member
  • **
  • Posts: 16
    • View Profile
    • steezware
TCB(44) Always a Positive Number?
« 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?

Allen Miglore

  • Silver Member
  • ***
  • Posts: 38
    • View Profile
    • UnForm
Re: TCB(44) Always a Positive Number?
« Reply #1 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.

steezware

  • Member
  • **
  • Posts: 16
    • View Profile
    • steezware
Re: TCB(44) Always a Positive Number?
« Reply #2 on: July 10, 2023, 02:03:58 PM »
Thx, Allen!