diff options
Diffstat (limited to 'core/helpers.h')
-rw-r--r-- | core/helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/helpers.h b/core/helpers.h index a6e152cbf..06c1c8527 100644 --- a/core/helpers.h +++ b/core/helpers.h @@ -36,7 +36,8 @@ int parseWeightToGrams(const QString &text); int parsePressureToMbar(const QString &text); int parseGasMixO2(const QString &text); int parseGasMixHE(const QString &text); -QString get_dive_duration_string(timestamp_t when, QString hourText, QString minutesText, QString secondsText = "", bool isFreeDive = false); +QString get_dive_duration_string(timestamp_t when, QString hoursText, QString minutesText, QString secondsText = QObject::tr("sec"), QString separator = ":", bool isFreeDive = false); +QString get_dive_surfint_string(timestamp_t when, QString daysText, QString hoursText, QString minutesText, QString separator = " ", int maxdays = 4); QString get_dive_date_string(timestamp_t when); QString get_short_dive_date_string(timestamp_t when); bool is_same_day (timestamp_t trip_when, timestamp_t dive_when); |