clock_rfc2822(3tcl)

πŸ“¦
version 2.0 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ clock_rfc2822 ✨

okay bestie, so this is a page from the tcllib manual β€” it's clock_rfc2822(3tcl) β€” and it's literally just about one (1) thing: parsing RFC 2822 dates/times. tiny page, huge slay. let's get into it πŸ’…


🌸 NAME 🌸

clock_rfc2822 β€” parsing RFC 2822 dates/times. that's it. that's the whole job. and she does it well πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

package require Tcl 8.5 9

package require clock::rfc2822 ?0.2?

::clock::rfc2822 parse_date date

so you need Tcl 8.5 or 9 (yes both, she's flexible like that ✨), then you pull in the package clock::rfc2822 β€” version 0.2 if you're being specific, or don't specify and just vibe β€” and then there's exactly one command waiting for you. one. iconic minimalism.


πŸ¦‹ DESCRIPTION πŸ¦‹

this package gives you the functionality to parse dates that are in RFC 2822 format. no more, no less. she's not trying to be everything, she's just being herself. 🫢

πŸ’œ ::clock::rfc2822 parse_date date

okay so this command β€” parse_date β€” takes your RFC2822 date string and hands you back the given date in seconds since epoch. so like, a nice lil integer you can actually do math with. ⭐

heads up bestie: if the command can't parse the date, it throws an error. no silent nonsense, no fake date, she will simply tell you. πŸ’€

so the flow is: you give her a date string, she gives you epoch seconds, or she yells. straightforward queen behavior πŸ‘‘


😭 BUGS, IDEAS, FEEDBACK 😭

real talk: this document, and the package it describes, will undoubtedly contain bugs and other problems. that's just how software is, ngl. πŸ™ˆ

  • please report bugs in the category clock::rfc2822 of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist
  • also please report any ideas for enhancements you may have for either the package and/or the documentation β€” she wants to hear your thoughts fr fr

when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u. that's the format. not vibes, diffs. πŸ’…

also note: attachments are strongly preferred over inlined patches. you make an attachment 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. iykyk. ✨

πŸ‘‘ CATEGORY πŸ‘‘

Text processing β€” yes she's a text processing girlie, and she ate πŸ“


and that's the whole page, bestie! this lil number comes to you from tcllib, version 0.2, and it lives under the name clock_rfc2822(3tcl). go parse some dates, you're gonna do amazing πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from