FUNCTION::TZ_GMTOFF(3stap)

πŸ’– FUNCTION::TZ_GMTOFF πŸ’–

okay bestie, so this one lives in the Time utility functions corner of the SystemTap tapset reference β€” page FUNCTION::TZ_GMTOFF(3stap), if you're being formal about it. it's a tiny little function with one job and it does it flawlessly. no notes. πŸ•°οΈβœ¨


✨ NAME ✨

function::tz_gmtoff β€” return local time zone offset 🌍


🌸 SYNOPSIS 🌸

tz_gmtoff()

πŸŽ€ ARGUMENTS πŸŽ€

None πŸ’…

like, literally zero. she takes no arguments. she needs no arguments. she simply knows. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: tz_gmtoff() returns the local time zone offset β€” measured in seconds west of UTC β€” and it's exactly the value that was passed by staprun at script startup only.

bestie, that "at script startup only" part is the whole vibe. this isn't a live reading that updates as you go β€” it's a snapshot from when your script first started up, courtesy of staprun. so if your timezone situation changes mid-run (pls don't, but hypothetically), this function is not the one tracking it. periodt. πŸ™ˆ

and that's it! that's the whole function. short, sweet, iconic, does exactly one thing. ate and left no crumbs πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘


and that's a wrap on this little cutie 🫢 this page came to you straight outta the SystemTap Tapset Reference manual, dated September 2026 β€” big love to the SystemTap girlies who wrote it, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from