diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-02-25 20:23:03 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-04 12:16:49 -0800 |
commit | e9debdf281a1a9661fb261df73446a8898be1d77 (patch) | |
tree | 9959abd47e0294bac6bfa5f899cc462346392da3 /core/helpers.h | |
parent | 3afc4528b32f4b716fbda6394fc74d1e226c36df (diff) | |
download | subsurface-e9debdf281a1a9661fb261df73446a8898be1d77.tar.gz |
Add helper to parse duration text
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/helpers.h')
-rw-r--r-- | core/helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/helpers.h b/core/helpers.h index a4a903ea6..7acbeaff6 100644 --- a/core/helpers.h +++ b/core/helpers.h @@ -28,6 +28,7 @@ QString getPrintingTemplatePathBundle(); void copyPath(QString src, QString dst); extern const QString get_dc_nickname(const char *model, uint32_t deviceid); int gettimezoneoffset(timestamp_t when = 0); +int parseDurationToSeconds(const QString &text); int parseLengthToMm(const QString &text); int parseTemperatureToMkelvin(const QString &text); int parseWeightToGrams(const QString &text); |