File: netdate.mli

package info (click to toggle)
netstring 0.10.1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,000 kB
  • ctags: 895
  • sloc: ml: 8,389; xml: 416; makefile: 188; sh: 103
file content (32 lines) | stat: -rw-r--r-- 817 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(* $Id: netdate.mli,v 1.1 2001/08/30 19:50:42 gerd Exp $
 * ----------------------------------------------------------------------
 *
 *)


(* Support for common date/time formats in the net *)

(* mk_*: convert the time (seconds since the epoch) to a date string.
 * The time zone is always GMT.
 *)

val mk_mail_date : float -> string
  (* "Sun, 06 Nov 1994 08:49:37 GMT".
   * Conforms to RFC 1123 which updates RFC 822
   *)

val mk_usenet_date : float -> string
  (* "Sunday, 06-Nov-94 08:49:37 GMT".
   * Conforms to RFC 1036 which obsoletes RFC 850. 
   * Note that this format has only two digits for the year.
   *)

(* ======================================================================
 * History:
 * 
 * $Log: netdate.mli,v $
 * Revision 1.1  2001/08/30 19:50:42  gerd
 * 	Initial revision.
 *
 * 
 *)