diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-04-24 21:05:57 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-24 21:05:57 -0700 |
commit | 4587f8a2744ed8286aa8912de75516deaf217f4e (patch) | |
tree | 4103e6c22a4b517ddc6824bca76f6b7fb1587632 /divelist.h | |
parent | 1e0bc8a1ab5d124445786266ad916744b1368986 (diff) | |
download | subsurface-4587f8a2744ed8286aa8912de75516deaf217f4e.tar.gz |
Call the get_date functions with timestamp_t instead of struct tm
This is the much more natural way to use this function, now that I look at
it...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/divelist.h b/divelist.h index 47680f9b2..f3054d213 100644 --- a/divelist.h +++ b/divelist.h @@ -30,8 +30,8 @@ extern void export_all_dives_uddf_cb(); /* divelist core logic functions */ extern void process_dives(bool imported, bool prefer_imported); -extern char *get_dive_date_string(struct tm *tm); -extern char *get_trip_date_string(struct tm *tm, int nr); +extern char *get_dive_date_string(timestamp_t when); +extern char *get_trip_date_string(timestamp_t when, int nr); extern void clear_trip_indexes(void); extern dive_trip_t *find_trip_by_idx(int idx); extern int dive_nr_sort(int idx_a, int idx_b, timestamp_t when_a, timestamp_t when_b); |