fmt_httpdate(3diet)

fmt_httpdate3diet

Write a date in ascii as in the http protocol

Usage

#include <fmt.h>

size_t fmt_httpdate(char *dest,time_t source);

Overview

fmt_httpdate writes a date in ASCII representation as the HTTP protocol defines it: "Sun, 06 Nov 1994 08:49:37 GMT".

fmt_httpdate does not append \0.

If dest equals FMT_LEN (i.e. is zero), fmt_httpdate returns the number of bytes it would have written.

The output of fmt_httpdate is 29 until Jan 1st 10000.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–4.0
  2. 5.0–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.