Mailing List Archive

[MythTV/mythtv] b391cf: Conversion of negative time values to string
Branch: refs/heads/fixes/33
Home: https://github.com/MythTV/mythtv
Commit: b391cfb6a7ac87d245f697edb77c0114d67de683
https://github.com/MythTV/mythtv/commit/b391cfb6a7ac87d245f697edb77c0114d67de683
Author: Klaas de Waal <klaas@kldo.nl>
Date: 2023-03-24 (Fri, 24 Mar 2023)

Changed paths:
M mythtv/libs/libmythbase/mythdate.cpp

Log Message:
-----------
Conversion of negative time values to string

When converting a negative time value with format string "m:ss" there is
a minus sign before the minutes and also a minus sign before the seconds.
The implementation apparently only supports positive time interval values.
The implementation is now extended to support negative time interval values
by converting the absolute time value to string and then prepending a minus
sign when the time value is negative.
The implementation was introduced in commit 65b9c73adacabe38877c3e18af5d4a0545799c1
"Better fix for MythDate::formatTime to handle overflows.", committed on Mar 16, 2022.

Refs #733

(cherry picked from commit c166849536ca2785184b5b6a20aec6bfd3b7a099)


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits