return string(buf);
}
+void seconds_to_hour_minute(int seconds, int *hour, int *minute)
+{
+ if (hour != NULL) {
+ *hour = 0;
+ while (seconds >= 3600) {
+ seconds-=3600;
+ (*hour)++;
+ }
+ }
+
+ if (minute != NULL) {
+ *minute = 0;
+ while (seconds >= 60) {
+ seconds-=60;
+ (*minute)++;
+ }
+ }
+}
+
WEEK::WEEK(const std::string& daystring)
{
int len=daystring.length();
std::string make_nice_time(int seconds);
std::string format_full_time(int seconds);
+void seconds_to_hour_minute(int seconds, int *hour, int *minute);
class WEEK
{