1fmt_httpdate(3) Library Functions Manual fmt_httpdate(3)
2
3
4
6 fmt_httpdate - write a date in ASCII as in the HTTP protocol
7
9 #include <fmt.h>
10
11 size_t fmt_httpdate(char *dest,time_t source);
12
14 fmt_httpdate writes a date in ASCII representation as the HTTP protocol
15 defines it: "Sun, 06 Nov 1994 08:49:37 GMT".
16
17 fmt_httpdate does not append \0.
18
19 If dest equals FMT_LEN (i.e. is zero), fmt_httpdate returns the number
20 of bytes it would have written.
21
22 The output of fmt_httpdate is 29 until Jan 1st 10000.
23
24
25
26 fmt_httpdate(3)