| 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 | 11 | ▶ | use 5.006; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 11 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 11 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | 11 | our $VERSION = '0.0304'; | |
| 26 | |||
| 27 | 11 | ▶ | use Carp (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 11 | ▶ | use Config; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 11 | ▶ | use POSIX (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | |||
| 31 | 11 | require XSLoader; | |
| 32 | 11 | 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<POSIX::strftime|POSIX/strftime> function. | ||
| 42 | |||
| 43 | The non-POSIX feature is that seconds can be float number. | ||
| 44 | |||
| 45 | =cut | ||
| 46 | |||
| 47 | |||
| 48 | 11 | 1; | |
| 49 | |||
| 50 | |||
| 51 | =head1 SEE ALSO | ||
| 52 | |||
| 53 | L<POSIX::strftime::GNU>. | ||
| 54 | |||
| 55 | =head1 AUTHOR | ||
| 56 | |||
| 57 | Piotr Roszatycki <dexter@cpan.org> | ||
| 58 | |||
| 59 | =head1 LICENSE | ||
| 60 | |||
| 61 | Copyright (c) 2012-2014 Piotr Roszatycki <dexter@cpan.org>. | ||
| 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<http://dev.perl.org/licenses/artistic.html> | ||