NetSDS...teTime(3pm)
π NetSDS::Util::DateTime β the vibe β¨
okay bestie, so this page is from the User Contributed Perl Documentation set, and it's literally all about NetSDS::Util::DateTime, the date/time bestie you didn't know you needed. it's giving "I do one thing and I do it slayfully". let's get into it π«Ά
πΈ NAME πΈ
NetSDS::Util::DateTime β common date/time processing routines
π SYNOPSIS π
the whole glow-up in two lines, no cap:
use NetSDS::Util::DateTime;
print "Current date: " . date_now();
β¨ DESCRIPTION β¨
so basically, this package hands you a whole set of routines for date and time processing. that's it, that's the description, and honestly? iconic. it does what it says on the tin, periodt. π
π EXPORTED FUNCTIONS π
these are the main characters. memorize them, iykyk.
date_now_array([TIME])β gives you back an array of date items for the date you passed in. and if you didn't pass a source date? it just uses the current date, nbd. π¦date_now([TIME])β returns the [given] date as a string, looking like this:
2001-12-23 14:39:53
date_now_iso8601([TIME])β returns the date as an ISO 8601 string, like:
20011223T14:39:53Z
for the deep lore, the original page points you at:
date_strip(DATE)β trims the milliseconds off a date. bye bye, tiny numbers. πdate_date(DATE)β trims the time part off a date. just the date, nothing else.date_time(DATE)β trims the date part off a date. time only, bestie. β°time_from_string($string)β returns a parsed date/time structure. hand it a string, get structure back. πdate_from_string($string)β returns the date from a string representation.date_inc([INCREMENT, [TIME]])β returns the date incremented by however many seconds you gave it. time travel but make it math. β¨date_inc_string([INCREMENT, [TIME]])β same energy as above, but it returns the string representation of the date incremented by that number of seconds. π
π§ EXAMPLES π§
None yet
(yeah, the well is dry on this one. we move. π)
π BUGS π
Unknown yet
(not a single one known, which is either a flex or a mystery. the mystery is the vibe.)
π₯ SEE ALSO π₯
Date::ParseDate::Format
go say hi, they're the cousins. π«Ά
β TODO β
- Import stuff from Wono project
(manifesting that for future us β¨)
π AUTHOR π
- Valentyn Solomko
<val@pere.org.ua> - Michael Bochkaryov
<misha@rattler.kiev.ua>
and that's the whole page, bestie!! this one was shipped as part of perl v5.36.0, dated 2022-11-20 β so shoutout to that era, and to you for reading all the way to the end. mwah π ππ
π¦ where this page comes from
- debian bookworm: libnetsds-util-perl 1.045-2 Β· GPL-2.0-or-later
- debian trixie: libnetsds-util-perl 1.045-2 Β· GPL-2.0-or-later
- ubuntu noble: libnetsds-util-perl 1.045-2 Β· GPL-2.0-or-later
- ubuntu questing: libnetsds-util-perl 1.045-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms