File Coverage

blib/lib/POSIX/strftime/GNU/XS.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             #!/usr/bin/perl -c
2              
3             package POSIX::strftime::GNU::XS;
4              
5             =head1 NAME
6              
7             POSIX::strftime::GNU::XS - XS extension for POSIX::strftime::GNU
8              
9             =head1 SYNOPSIS
10              
11             $ export PERL_POSIX_STRFTIME_GNU_XS=1
12              
13             =head1 DESCRIPTION
14              
15             This is XS extension for POSIX::strftime which implements more character
16             sequences compatible with GNU systems.
17              
18             =cut
19              
20              
21 4     4   147 use 5.006;
  4         14  
  4         157  
22 4     4   23 use strict;
  4         10  
  4         224  
23 4     4   18 use warnings;
  4         8  
  4         160  
24              
25             our $VERSION = '0.0304';
26              
27 4     4   18 use Carp ();
  4         6  
  4         125  
28 4     4   22 use Config;
  4         7  
  4         150  
29 4     4   19 use POSIX ();
  4         21  
  4         216  
30              
31             require XSLoader;
32             XSLoader::load(__PACKAGE__, $VERSION);
33              
34              
35             =head1 FUNCTIONS
36              
37             =head2 strftime
38              
39             $str = strftime($format, @time)
40              
41             This is replacement for L function.
42              
43             The non-POSIX feature is that seconds can be float number.
44              
45             =cut
46              
47              
48             1;
49              
50              
51             =head1 SEE ALSO
52              
53             L.
54              
55             =head1 AUTHOR
56              
57             Piotr Roszatycki
58              
59             =head1 LICENSE
60              
61             Copyright (c) 2012-2014 Piotr Roszatycki .
62              
63             This is free software; you can redistribute it and/or modify it under
64             the same terms as perl itself.
65              
66             strftime function:
67              
68             Copyright (c) 1991-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
69              
70             This program is free software: you can redistribute it and/or modify
71             it under the terms of the GNU General Public License as published by
72             the Free Software Foundation; either version 3 of the License, or
73             (at your option) any later version.
74              
75             See L