sdate(1)

πŸ’– sdate(1) β€” the Debian manual page, but make it cute πŸ’–

okay bestie, sit down, hydrate, and let me tell you about sdate β€” the never ending September date πŸ‚βœ¨ (yes that's literally its manual name, sdate - never ending September date)


✨ NAME ✨

sdate β€” never ending September date πŸ‚πŸ¦‹


🌸 SYNOPSIS 🌸

sdate [-e|--epoch yyyy-mm] [-c|--covid vv] [-l|--lib library] [--]
[command]

πŸ’… DESCRIPTION πŸ’…

so here's the tea πŸ«–: sdate runs a command in an environment where it wraps the libc localtime() and gmtime() calls, so the program will use the eternal September date. iconic behaviour honestly.

the wrapper functions live in a shared library /usr/lib/libsdate/libsdate.so*, and that library gets loaded through the LD_PRELOAD mechanism of the dynamic loader. (see ld.so(8) β€” go read it, it's giving lore πŸ“–)


πŸ‘‘ OPTIONS πŸ‘‘

  • -e yyyy-mm, --epoch yyyy-mm β€” specify an alternative epoch, default is 1993-09. time travel, but make it September πŸ’«
  • -c vv, --covid vv β€” enable COVID mode 😷 for the specified variant. sets the epoch to an appropriate value for that variant.
  • -l library, --lib library β€” specify an alternative wrapper library. swap the whole vibe πŸŽ€
  • [--] command β€” any command you want to be ran πŸƒβ€β™€οΈπŸ’¨ use -- if your command has other options that may confuse sdate's option parsing. protect the parser bestie πŸ›‘οΈ
  • -h β€” display help. we love a helpful icon πŸ™Œ
  • -v β€” display version. main character energy, know thyself ✨

πŸŽ€ FILES πŸŽ€

  • /usr/lib/libsdate/* β€” the shared library containing the wrapper functions. this is where the magic lives πŸͺ„

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • LD_PRELOAD

πŸ’€ LIMITATIONS πŸ’€

library versions

every command executed within sdate needs to be linked to the same version of the C library as sdate itself. no mixing, no matching, it's giving strict πŸ’…

not me warning you but like... fr fr, mismatched libc versions and this whole thing goes sideways 😭

🌈 SEE ALSO 🌈


πŸ’œ COPYING πŸ’œ

sdate is distributed under the GNU General Public License. (GPL v2 or later). slay, legally 🫢


⭐ AUTHORS ⭐

Christoph Berg β€” <cb@df7cb.de> πŸ‘‘


and that's the whole thing bestie!! this page came to you from the Debian Project, dated 4620 September 1993 πŸ“…βœ¨ (yes the date is like that, don't ask, it's the eternal September of it all πŸ‚) β€” version sdate(1), mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from