SOLM 1.2b1 RTF Avatar
  1. OMG Issue

SOLM12 — TimeInterval output string formatter has incorrect formatting

  • Key: SOLM12-18
  • Status: closed  
  • Source: Kratos RT Logic, Inc. ( Mr. Justin Boss)
  • Summary:

    Within SpacePython times.py TimeInterval _str_() function, the following lines are faulty:

    hours = seconds / 3600
    minutes = (seconds % 3600) / 60

    Both of these variables should be integers (not floating point values)

    These instead should be:
    hours = int(seconds / 3600)
    minutes = int((seconds % 3600) / 60)

  • Reported: SOLM 1.1 — Wed, 13 Nov 2024 00:34 GMT
  • Disposition: Resolved — SOLM 1.2b1
  • Disposition Summary:

    Update hours and minutes calculations

    In times.py, change:
    hours = seconds / 3600
    To:
    hours = int(seconds / 3600)

    And:
    minutes = (seconds % 3600) / 60
    To:
    minutes = int((seconds % 3600) / 60)

  • Updated: Tue, 1 Jul 2025 15:03 GMT