summaryrefslogtreecommitdiffstats
path: root/helpers.h
diff options
context:
space:
mode:
authorGravatar Giorgio Marzano <marzano.giorgio@gmail.com>2015-10-06 21:08:27 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-18 17:37:49 -0700
commit45b1d0d73db6e2116c6de7113feed381dcc5875f (patch)
treebe00cdcb864e2060192e68c46e7d8d37d9e0805a /helpers.h
parent5d1703cf2c7ebc65ee29e99e40e1c45c4fc1e4ed (diff)
downloadsubsurface-45b1d0d73db6e2116c6de7113feed381dcc5875f.tar.gz
Display day number in trips longer than 1 day
Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers.h b/helpers.h
index 76c6ac9cd..5f2f2f2c5 100644
--- a/helpers.h
+++ b/helpers.h
@@ -36,7 +36,8 @@ int parseTemperatureToMkelvin(const QString &text);
QString get_dive_duration_string(timestamp_t when, QString hourText, QString minutesText);
QString get_dive_date_string(timestamp_t when);
QString get_short_dive_date_string(timestamp_t when);
-QString get_trip_date_string(timestamp_t when, int nr);
+bool is_same_day (timestamp_t trip_when, timestamp_t dive_when);
+QString get_trip_date_string(timestamp_t when, int nr, bool getday);
QString uiLanguage(QLocale *callerLoc);
QLocale getLocale();
QString getDateFormat();