shishi_generalize_time(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_generalize_time(3) β€” the shishi manual, bestie edition πŸ’–

okay so real talk, this one lives in the shishi manual section 3, and it's lowkey one of the most useful lil helpers in the whole Kerberos-adjacent universe. it's called shishi_generalize_time and yes, the name is a mouthful, but the vibe check passes. πŸ•°οΈβœ¨


✨ NAME ✨

shishi_generalize_time β€” an API function, bestie. that's it, that's the whole name section. πŸŽ€


🌸 SYNOPSIS 🌸

#include <shishi.h>

const char * shishi_generalize_time(Shishi * handle, time_t t);

look at that signature. clean. iconic. no notes. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” the Shishi handle, and you gotta get it the legit way, as allocated by shishi_init(). no bootleg handles, we don't do that here. 🫢
  • time_t t β€” a plain old C time, the kind you wanna convert. that's the whole assignment. ⏳

πŸ’œ DESCRIPTION πŸ’œ

so what does it do, you ask? it converts the C time t into a KerberosTime string representation. like, glow-up for your timestamp. ✨

🚨 IMPORTANT, no cap: the returned string must not be deallocated by the caller. do NOT free() it. do NOT get cute with it. it's not yours, it's the library's. put your hands down. πŸ™ˆ

⭐ RETURN VALUE ⭐

it returns a KerberosTime formatted string that corresponds to the input parameter. yes, it just gives you the thing. main character behavior fr fr. πŸ‘‘


πŸ”₯ REPORTING BUGS πŸ”₯

found a bug? don't suffer in silence, bestie, spill. report it to <bug-shishi@gnu.org>. πŸ“¬


Copyright Β© 2002-2022 Simon Josefsson. πŸ’–

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (translation: go off, just keep the receipts. 🧾)


πŸ‘‘ SEE ALSO πŸ‘‘

the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, the command

info shishi

should give you access to the complete manual. iykyk, the info page is where the lore lives. πŸ“–πŸ’«


and that's the whole page, angel. this one's from shishi version 1.0.3, and it's the shishi_generalize_time(3) page, so go forth, convert those timestamps, and slay responsibly. πŸ’…πŸŽ€πŸ¦‹