---
name: "rfc2822"
section: "3tcl"
platform: "linux"
package: "tcllib"
version: "2.0+dfsg-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rfc2822"
---

# rfc2822(3tcl)

Parsing RFC 2822 dates/times

```

```

## NAME

clock\_rfc2822 - Parsing RFC 2822 dates/times

## SYNOPSIS

package require **Tcl 8.5 9**

package require **clock::rfc2822 ?0.2?**

**::clock::rfc2822 parse\_date** *date*

```

```

## DESCRIPTION

This package provides functionality to parse dates in RFC 2822 format.

- **::clock::rfc2822 parse\_date** *date*

  This command parses an RFC2822 date string and returns the given date in seconds since epoch. An error is thrown if the command is unable to parse the date.

## BUGS, IDEAS, FEEDBACK

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category *clock::rfc2822* of the *Tcllib Trackers* \[http://core.tcl.tk/tcllib/reportlist\]. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide *unified diffs*, i.e the output of **diff -u**.

Note further that *attachments* are strongly preferred over inlined patches. Attachments can be made by going to the **Edit** form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

## CATEGORY

Text processing
