BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Function keepWallTimeSetOffset

    • Keep the SAME wall-clock (y,m,d,h,m,s) but re-interpret it in the given numeric UTC offset (hours east of Greenwich, supports fractions). Returns a Date (correct instant) AND a formatted string like "Tue Oct 21 2025 11:03:00 GMT-0400".

      Parameters

      • date: Date
      • tzHours: number

      Returns { date: Date; formatted: string }