Time::tm(3perl)
π Time::tm(3perl) β the secret little struct behind your time functions β¨
okay bestie, real talk: this is a page from the Perl Programmers Reference Guide, and it's about Time::tm β the internal object that Time::gmtime and Time::localtime use behind the scenes. she's not for you, she's for the machinery π but let's get into it anyway because the lore is kinda iconic.
π«Ά NAME π«Ά
Time::tm β the internal object used by Time::gmtime and Time::localtime. lowkey a supporting character, highkey essential π
π SYNOPSIS π
π¨ bestie STOP. put the keyboard down.
Don't use this module directly.
that's it. that's the whole synopsis. she said do not perceive me π
β¨ DESCRIPTION β¨
so here's the tea π β this module is used internally as a base class by the Time::localtime And Time::gmtime functions. (yes the original really capitalizes that "And", we keep it, we don't ask questions π)
what it does is create a Time::tm struct object β and the way that works is that you can address it just like C's tm structure from time.h. iykyk, C girlies know exactly what this is giving π§
and the fields you can reach into are, one by one:
secminhourmdaymonyearwdayydayisdst
nine little slots, all addressable, all vibing β¨
This class is an internal interface only. periodt. she's backstage, she's not taking pictures with the fans π
π AUTHOR π
Tom Christiansen β the icon himself π«Ά
that's the whole page, bestie, she's short and mysterious and that's her whole brand π¦
this was perl v5.44.0, dated 2026-10-17 β catch you in the next manual page, mwah ππΈπ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms