clock_rfc2822(n)
β¨ clock_rfc2822 β the manual, but make it cute β¨
okay so bestie, you know clock_rfc2822(n)? it lives in the Date/Time Utilities corner of the manual-verse and honestly? it's giving "small but mighty." one job, does it well, no drama. let's get into it π
π NAME π
clock_rfc2822 β parsing RFC 2822 dates/times, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
package require Tcl 8.5 9
package require clock::rfc2822 ?0.2?
::clock::rfc2822 parse_date date
lowkey obsessed with how short this is. three lines. iconic. periodt. π
π« DESCRIPTION π«
so basically, this package hands you the power to parse dates that are written in RFC 2822 format. that's it. that's the mission. and it ate. π₯
::clock::rfc2822 parse_date dateβ bestie, you hand this command an RFC2822 date string, and it hands you back that same date expressed in seconds since epoch. clock math unlocked π . but heads up: if the command can't parse the date? it throws an error. no silent nonsense, no pretending, just a straight-up error. respect fr fr. π€
π BUGS, IDEAS, FEEDBACK π
ngl, this document and the package it describes will undoubtedly contain bugs and other problems. that's just how software is, we don't lie here π.
so if you find one, please report it in the category clock::rfc2822 of the Tcllib Trackers over at:
http://core.tcl.tk/tcllib/reportlist
and hey β if you've got ideas for enhancements for either the package and/or the documentation, send those along too. we love a glow-up suggestion π«Άβ¨
when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u. that's the format, no substitutions π§
also, note further that attachments are strongly preferred over inlined patches β like, strongly. the way to attach one is: go to the Edit form of the ticket immediately after its creation, and then use the left-most button in the secondary navigation bar. that's the one. found it. slay π
π CATEGORY π
Text processing β that's where this cutie hangs out π
and that's the whole page, bestie!! this little manual came from tcllib, version 0.2, dated with clock_rfc2822(n) energy β so go forth, parse those RFC 2822 dates, and remember: seconds since epoch or it didn't happen ππ¦
π¦ where this page comes from
- fedora 43: tcllib 2.0-3.fc43 Β· TCL
- fedora 44: tcllib 2.0-4.fc44 Β· TCL
- nixos 26.05: tcllib 2.0
- nixpkgs unstable: tcllib 2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms