Skip to main content
Module

x/lume_langdata/deps.ts>date.toIMF

A Lume plugin for multi-language websites.
Go to Latest
function date.toIMF
import { date } from "https://deno.land/x/lume_langdata@v2.0.3/deps.ts";
const { toIMF } = date;

Parse a date to return a IMF formatted string date RFC: https://tools.ietf.org/html/rfc7231#section-7.1.1.1 IMF is the time format to use when generating times in HTTP headers. The time being formatted must be in UTC for Format to generate the correct format.

Parameters

date: Date

Date to parse

Returns

string

IMF date formatted string