Oberon || Library || Module Index || Search Engine || Definition || Module
TYPE DateStr = ARRAY 34 OF CHAR; (* max. length of all possible dates *)
PROCEDURE ToHTTPDate(date: Times.Time; VAR httpDate: DateStr); PROCEDURE FromHTTPDate(httpDate: Streams.Stream; date: Times.Time): BOOLEAN; PROCEDURE Base64Decode(in: Streams.Stream; VAR out: ARRAY OF CHAR): BOOLEAN;
ToHTTPDate converts an oberon time stamp into a string with a valid date (RFC1123) for the HTTP-protocol. FromHTTPDate does it vice versa. Every allowed version of a HTTP-date is recognized. FromHTTPDate returns FALSE if httpDate is not a valid HTTP-date.
Base64Decode transforms abase-64-encoded Stream to normal ASCII-code. It will return FALSE, if out isn't large enough.
Oberon || Library || Module Index || Search Engine || Definition || Module