man-pages/man3/Date::Language::Bulgarian.3pm.html
2021-03-31 01:06:50 +01:00

92 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Date::Language::Bulgarian</TITLE>
</HEAD><BODY>
<H1>Date::Language::Bulgarian</H1>
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2020-03-06<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Date::Language::Bulgarian - localization for Date::Format
<A NAME="lbAC">&nbsp;</A>
<H2>DESCRIPTION</H2>
This is Bulgarian localization for Date::Format.
It is important to note that this module source code is in utf8.
All strings which it outputs are in utf8, so it is safe to use it
currently only with English. You are left alone to try and convert
the output when using different Date::Language::* in the same application.
This should be addresed in the future.
<A NAME="lbAD">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
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-&gt;new($l);
my $zone = $languages{$l};
print $/. &quot;$l $zone&quot;;
print $lang-&gt;time2str($template, $time);
print $lang-&gt;time2str($template, $time, $zone);
print $lang-&gt;strftime($template, \@lt);
}
</PRE>
<A NAME="lbAE">&nbsp;</A>
<H2>AUTHOR</H2>
Krasimir Berov (<A HREF="mailto:berov@cpan.org">berov@cpan.org</A>)
<A NAME="lbAF">&nbsp;</A>
<H2>COPYRIGHT</H2>
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.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">DESCRIPTION</A><DD>
<DT id="3"><A HREF="#lbAD">SYNOPSIS</A><DD>
<DT id="4"><A HREF="#lbAE">AUTHOR</A><DD>
<DT id="5"><A HREF="#lbAF">COPYRIGHT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:38 GMT, March 31, 2021
</BODY>
</HTML>