Chart:...teTime(3pm)

πŸ“¦
version 2.90 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 🫢✨


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