Date::L...ulgarian(3)

πŸ’– NAME πŸ’–

Date::Language::Bulgarian β€” localization for Date::Format. Also, hi bestie, this is the Date::L...ulgarian(3) manual page, User Contributed Perl Documentation vibes and all πŸ’…βœ¨


🌸 DESCRIPTION 🌸

Okay so this module is the Bulgarian localization for Date::Format. Big important note: the module source code is in utf8. Like, literally in utf8.

All strings it outputs are in utf8 too. So it’s safe to use it currently only with English. That’s the vibe check for now 🫢

When you’re using different Date::Language::* modules in the same application, you are left alone to try and convert the output. No cap, that’s on you. This should be addresed in the future β€” and yes, the original says it like that 😭


πŸ¦‹ SYNOPSIS πŸ¦‹

use strict;
use warnings;
use Date::Language;
local $\=$/;
my $template ='%a %b %e %T %Y (%Y-%m-%d %H:%M:%S)';
my $time=1290883821; #or just use time();
my @lt = localtime($time);
my %languages = qw(English GMT German EEST Bulgarian EET);
binmode(select,':utf8');

foreach my $l(keys %languages){
    my $lang = Date::Language->new($l);
    my $zone = $languages{$l};
    print $/. "$l $zone";
    print $lang->time2str($template, $time);
    print $lang->time2str($template, $time, $zone);

    print $lang->strftime($template, \@lt);
}

πŸŽ€ AUTHOR πŸŽ€

Krasimir Berov (berov@cpan.org) β€” icon, legend, the moment πŸ‘‘


Copyright (c) 2010 Krasimir Berov.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay, legally speaking πŸ’œ


okay bye bestie 🫢 this cute little sign-off is brought to you by perl v5.42.0, dated 2020-05-20 β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from