clock_rfc2822(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ 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