NAME

POSIX::strftime::Compiler - Compile strftime to perl. for loggers and servers

SYNOPSIS

use POSIX::strftime::Compiler;

my $psc = POSIX::strftime::Compiler->new('%a, %d %b %Y %T %z');
say $psc->to_string(localtime):

DESCRIPTION

POSIX::strftime::Compiler compiles strftime's format to perl. And generates formatted string. Because this module compiles strftime to perl code, it has good performance.

POSIX::strftime::Compiler has compatibility with GNU's strftime, but this module will not affected by the system locale. Because this module does not use strftime(3). This feature is useful when you want to write loggers, servers and portable applications.

METHODS

SUPPORTED FORMAT

%E[cCxXyY] and %O[deHImMSuUVwWy] are not supported, just remove E and O prefix.

SEE ALSO

LICENSE

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.

AUTHOR

Masahiro Nagano kazeburo@gmail.com