| 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
|
|
126
|
use 5.006; |
|
|
4
|
|
|
|
|
14
|
|
|
|
4
|
|
|
|
|
194
|
|
|
22
|
4
|
|
|
4
|
|
21
|
use strict; |
|
|
4
|
|
|
|
|
8
|
|
|
|
4
|
|
|
|
|
156
|
|
|
23
|
4
|
|
|
4
|
|
23
|
use warnings; |
|
|
4
|
|
|
|
|
4
|
|
|
|
4
|
|
|
|
|
182
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
our $VERSION = '0.0305'; |
|
26
|
|
|
|
|
|
|
|
|
27
|
4
|
|
|
4
|
|
21
|
use Carp (); |
|
|
4
|
|
|
|
|
6
|
|
|
|
4
|
|
|
|
|
92
|
|
|
28
|
4
|
|
|
4
|
|
17
|
use Config; |
|
|
4
|
|
|
|
|
5
|
|
|
|
4
|
|
|
|
|
162
|
|
|
29
|
4
|
|
|
4
|
|
18
|
use POSIX (); |
|
|
4
|
|
|
|
|
12
|
|
|
|
4
|
|
|
|
|
214
|
|
|
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 |