Time::F - Formatting times.
version 0.024
use Time::F; # strftime automatically imported use Time::C; use feature 'say'; # "mån 31 okt 2016 14:21:57" say strftime(Time::C->now_utc(), "%c", locale => "sv_SE");
Formats a time using "Format Specifiers" in Time::P, according to specified locale.
my $str = strftime($t, $fmt); my $str = strftime($t, $fmt, locale => $locale);
Formats a time using the formats specifiers in $fmt, under the locale rulses of $locale.
$fmt
$locale
$t
$t should be a Time::C time object.
$fmt should be a format specifier string, see "Format Specifiers" in Time::P for more details.
locale => $locale
$locale should be a locale. If not specified it defaults to C.
C
Andreas Guldstrand <andreas.guldstrand@gmail.com>
This software is Copyright (c) 2016 by Andreas Guldstrand.
This is free software, licensed under:
The MIT (X11) License
To install Time::C, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Time::C
CPAN shell
perl -MCPAN -e shell install Time::C
For more information on module installation, please visit the detailed CPAN module installation guide.