Loading...
Searching...
No Matches
duration.h File Reference

A minute count turned into a short human duration, no SDK. More...

#include <stddef.h>

Go to the source code of this file.

Functions

void duration_hm (char *out, size_t n, int minutes)
 Format minutes as a clock-style "H:MM", e.g. 445 -> "7:25".
void duration_hm_compact (char *out, size_t n, int minutes)
 Format minutes as "Xh Ym", dropping the hours once it is under one ("45m").

Detailed Description

A minute count turned into a short human duration, no SDK.