Timeslot(3pm)

πŸ“¦ version 2.1.1, in arch rolling

πŸ’… Timeslot(3pm) β€” bestie edition

okay so this is a page straight outta LogReport's Lire Documentation, and it's about Lire::Timegroup, which β€” minor plot twist β€” lives in the Timeslot page. don't ask, it's canon πŸŽ€

✨ NAME ✨

Lire::Timegroup β€” the base class for implementations of the timeslot aggregator. it's giving "parent energy", the blueprint other things build on 🫢

✨ SYNOPSIS ✨

use Lire::Timeslot;

✨ DESCRIPTION ✨

so this module is literally the base class for implementing the timeslot aggregator, no cap. and what does that aggregator do? it splits up the DLF records based on a unit of time. πŸ•°οΈ

like, say your unit is 1h β€” then every single DLF record that happens on the same hour of day gets grouped together, independently of which day it happens on. the day? irrelevant. the hour? main character. ✨


πŸ¦‹ CONSTRUCTOR πŸ¦‹

new( %params )

creates a shiny new instance of a timegroup aggregator. πŸ’– and on top of the normal report operator parameters, the timegroup aggregator can also take these:

  • field β€” this optional parameter holds the DLF field containing the time value that's used to group the DLF records together. wanna know more? go peek at the field() method. πŸ‘€
  • unit β€” this one is mandatory, bestie, you can't skip it. it should contain the time unit used to group the records. details live in the unit() method. πŸ”₯

🌸 METHODS 🌸

field( [$new_field] )

returns the name of the DLF field that's being used to group the DLF records. it should be a valid timestamp DLF field in the current schema β€” that part's non-negotiable. by default, the default timestamp field of the DLF schema gets used. πŸŽ€

and yeah, you can change the field whenever you want by passing in a $new_field parameter. slay.

unit( [$new_unit])

returns the time unit that'll be used to group the DLF records. πŸ• the unit is expressed as a duration value β€” like 1s β€” but here's the tea: this groups the records based on the second unit of the DLF record's timestamp value. periodt. πŸ“Œ

it could also be the name of a report specification's parameter that contains a duration value. iykyk.

the time unit can be swapped out by using the $new_unit parameter. πŸ’«


πŸ‘‘ SEE ALSO πŸ‘‘

so like, go read these too, fr fr:

πŸ’œ AUTHORS πŸ’œ

the icons who made this happen:

 Francis J. Lacoste <flacoste@logreport.org>
 Wolfgang Sourdeau <Wolfgang.Sourdeau@Contre.COM>

⭐ VERSION ⭐

 $Id: Timeslot.pm,v 1.27 2006/07/23 13:16:30 vanbaal Exp $

Copyright (C) 2001-2004 Stichting LogReport Foundation LogReport@LogReport.org

This file is part of Lire.

Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY β€” not even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 😭 (dramatic but true, that's just how the GPL do.) See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. 🧚


ngl the whole "no warranty" thing is a real vibe check β€” read it, it matters πŸ’€

okay that's the whole page, bye bestie! πŸ¦‹ this was Lire 2.1.1, dated 2025-09-28 β€” stamped, sealed, delivered, and absolutely iconic. πŸ’…βœ¨

πŸ“¦ where this page comes from