From 7839bd539793adaf1d57af310f70365d241bfc14 Mon Sep 17 00:00:00 2001 From: Gerd von Egidy Date: Fri, 10 Feb 2012 11:54:25 +0100 Subject: [PATCH] make format_full_time work on 64 bit systems too: need to use time_t and no int --- src/timefunc.cpp | 2 +- src/timefunc.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timefunc.cpp b/src/timefunc.cpp index ab5f6dc..1288301 100644 --- a/src/timefunc.cpp +++ b/src/timefunc.cpp @@ -129,7 +129,7 @@ string make_nice_time(int seconds) return out.str(); } -string format_full_time(int seconds) +string format_full_time(time_t seconds) { char buf[50]; memset (buf, 0, 50); diff --git a/src/timefunc.hxx b/src/timefunc.hxx index 55eab30..8db994c 100644 --- a/src/timefunc.hxx +++ b/src/timefunc.hxx @@ -36,7 +36,7 @@ double prec_time(void); int date_to_seconds(const std::string &date); std::string make_nice_time(int seconds); -std::string format_full_time(int seconds); +std::string format_full_time(time_t seconds); void seconds_to_hour_minute(int seconds, int *hour, int *minute); void split_daysec(int daysec, int *outhours=NULL, int *outminutes=NULL, int *outseconds=NULL); std::string output_hour_minute(int hour, int minute, bool h_for_00=true, int seconds=0); -- 1.7.1