Sisima...ateTime(3pm)

πŸ’– Sisimai::DateTime β€” the 3pm manual, but make it cute πŸ’–

okay bestie, welcome to the Sisima...ateTime(3pm) page β€” that's the truncated glow-up of Sisimai::DateTime(3pm), straight outta User Contributed Perl Documentation. date and time stuff, but make it slay ✨


✨ NAME ✨

Sisimai::DateTime β€” date and time utilities. that's it, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

use Sisimai::DateTime;
my $v = 'Sat Mar  1 13:47:46 JST 2014';
print Sisimai::DateTime->parse($v);  # Sat, 1 Mar 2014 13:47:46 +0900

look at her go πŸ’… one string in, one beautifully normalized date string out. no cap.


🌸 DESCRIPTION 🌸

Sisimai::DateTime provide methods for dealing date and time. yes, literally just that β€” she's a date-and-time utility module and she knows it. main character energy fr fr πŸ‘‘


πŸ‘‘ CLASS METHODS πŸ‘‘

πŸ’œ parse(Date string)

parse() method converts a various date format string. throw literally any chaotic date format at her and she'll hand you back something civilized 🫢

my $x = 'Fri, 9 Apr 2004 04:01:03 +0000 (GMT)';
my $y = '27 Apr 2009 08:08:54 +0900';
print Sisimai::DateTime->parse($x);  # Fri, 9 Apr 2004 04:01:03 +0000
print Sisimai::DateTime->parse($y);  # Thu, 27 Apr 2009 08:08:54 +0900
notice how $y says 27 Apr 2009 and she gives you back Thu, 27 Apr 2009 β€” she's adding the weekday herself, because she's thoughtful like that 😭✨

🧚 abbr2tz(Abbr)

abbr2tz() method converts a time zone abbreviation to 4 digit string of time zone. tiny abbreviation in, tidy 4-digit offset out πŸ’–

print Sisimai::DateTime->abbr2tz('JST');   # +0900
print Sisimai::DateTime->abbr2tz('UTC');   # +0000
print Sisimai::DateTime->abbr2tz('CDT');   # -0500

three letters in, +0900 / +0000 / -0500 out. iykyk 😌


🌈 AUTHOR 🌈

azumakuniyuki β€” the icon, the legend, the moment ⭐


Copyright (C) 2014-2025 azumakuniyuki, All rights reserved.


πŸ’… LICENSE πŸ’…

This software is distributed under The BSD 2-Clause License. go read it, it's short and it's giving generous πŸ“


and that's the whole page bestie, no skips, no cuts, every last crumb preserved πŸ™ˆπŸ’œ

sign-off time: this was rendered by perl v5.40.1 on 2026-07-05, and the page was filed under Sisima...ateTime(3pm) the whole time. periodt. πŸ’€βœ¨

πŸ“¦ where this page comes from