about summary refs log tree commit diff
path: root/timeutil.h
blob: 8ee39ccc7e777d6d39b5234bc3f07d72687456ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
enum time_format {
    RSS_TIME_FORMAT,
    ATOM_TIME_FORMAT,
    HTML_TIME_FORMAT_READABLE
};

#define MAX_TIMESTR_SIZE 32
// max HTML/Atom: 24 + NUL byte
// max RSS:       31 + NUL byte

size_t flocaltime(char *b, enum time_format type, size_t size, const time_t *time);