How to get RFC822-formated date from Calendar in OCaml

let rfc822_of_calendar c =
  CalendarLib.Printer.Calendar.sprint "%a, %d %b %Y %T %z" c