Chart:...teTime(3pm)
β¨ NAME β¨
Chart::Clicker::Axis::DateTime β it's an X or Y Axis, but make it DateTime π (this is the Chart:...teTime(3pm) page btw, from the User Contributed Perl Documentation besties π«Ά)
πΈ VERSION πΈ
version 2.90 β she's grown, she's thriving π
π¦ SYNOPSIS π¦
my $axis = Chart::Clicker::Axis::DateTime->new;
That's it. That's the whole vibe. One line and you're literally an axis-having main character β¨
π DESCRIPTION π
Okay so. This is a temporal Axis β like a regular axis but it's obsessed with time β°
She requires DateTime and DateTime::Set. No exceptions, no cap, those are the besties she refuses to function without π€
She inherits from Axis, so go check out the methods over there too β this page is not the whole story, iykyk πβ¨
And important: she expects that times will be in unix format. Unix timestamps, that's the dialect. Don't come at her with anything else π
π ATTRIBUTES π
π format
Set/Get the formatting string used to format the DateTime. So like, how do you want your time to look? Cute? Feral? ISO-ish? You decide, bestie β¨
Peep DateTime's strftime for what you can actually put in there β that's where the magic formatting cheat sheet lives π
π time_zone
Set/Get the time zone to use when creating DateTime objects!
Not me using an exclamation mark in a manpage but she EARNED it fr fr β
She accepts an object or a string, like 'America/Chicago' π So you can hand her a whole TimeZone object, or just a lil string, and she'll figure it out. Flexible queen π§
β METHODS β
π format_value
Formats the value using DateTime's strftime. That's the whole thing. She takes the value, she runs it through strftime, she gives you back something pretty π
Lowkey the most useful little method on this page ngl.
π AUTHOR π
Cory G Watson <gphat@cpan.org> β the icon, the legend, the one who built her π«Άβ¨
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2016 by Cory G Watson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself π β so yes, you can absolutely do stuff with her, go off π
aight that's the whole page bestie, mwah π
this lil writeup rode in on perl v5.36.0, dated 2022-10-14 β and ngl she still ate π β¨
π¦ where this page comes from
- ubuntu noble: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR 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