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:

  • sec
  • min
  • hour
  • mday
  • mon
  • year
  • wday
  • yday
  • isdst

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