csleeptimer/duration.h

15 lines
355 B
C

#ifndef _DURATION_H
#define _DURATION_H
typedef struct {
unsigned long seconds;
unsigned long minutes;
unsigned long hours;
} Duration;
Duration parseDuration(const char *duration);
unsigned long durationToSeconds(const Duration *duration);
Duration secondsToDuration(unsigned long seconds);
char* formatDuration(const Duration *duration);
#endif