Generate formatted string from a format and time.
Compiled codes are stored in %POSIX::strftime::Compiler::STRFTIME. This function is not exported by default.
new($fmt) create instance of POSIX::strftime::Compiler to_string(@time) Generate formatted string from time.
POSIX::strftime::Compiler supports almost all characters that GNU strftime(3) supports. But %E[cCxXyY] and %O[deHImMSuUVwWy] are not supported, just remove E and O prefix.
Time::TZOffset If Time::TZOffset is available, P::s::Compiler use it for more faster time zone offset calculation. I strongly recommend you to install this if you use %z.
Windows and Cygwin and some system may not support %z and %Z. For these system, POSIX::strftime::Compiler calculate time zone offset and find zone name. This is not fast. If you need performance on Windows and Cygwin, please install Time::TZOffset
POSIX::strftime::GNU POSIX::strftime::Compiler is built on POSIX::strftime::GNU::PP code POSIX Apache::LogFormat::Compiler
Copyright (C) Masahiro Nagano.
Format specification is based on strftime(3) manual page which is a part of the Linux man-pages project.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Masahiro Nagano <email@example.com>
|perl v5.20.3||POSIX::STRFTIME::COMPILER (3)||2016-03-17|