App-FromUnixtime
view release on metacpan or search on metacpan
- add pod for --re option
0.04 Mon Dec 29 15:49:52 JST 2014
- add re option
- refactor for metrics
0.03 Sun Dec 28 21:16:57 JST 2014
- fix dependency
0.02 Sun Dec 28 19:16:11 JST 2014
- use custom configuration file: .from_unixtimerc
- add new options: --start-bracket, --end-bracket
- add regexp pattarn for column: '_time'
- enhanced tests
0.01 Sun Dec 28 12:13:57 JST 2014
- original version
lib/App/FromUnixtime.pm view on Meta::CPAN
package App::FromUnixtime;
use strict;
use warnings;
use Getopt::Long qw/GetOptionsFromArray/;
use IO::Interactive::Tiny;
use POSIX qw/strftime/;
use Config::CmdRC qw/.from_unixtimerc/;
use Exporter 'import';
our @EXPORT = qw/from_unixtime/;
our $VERSION = '0.17';
our $MAYBE_UNIXTIME = join '|', (
'created_(?:at|on)',
'updated_(?:at|on)',
'released_(?:at|on)',
'closed_(?:at|on)',
script/from_unixtime view on Meta::CPAN
id 1
value 1419702037
created_at 1419702037(Sun, 28 Dec 2014 02:40:37 +0900)
updated_at 1419702037
=head2 CONFIGURATION
`from_unixtime` command will look for a configuration file before reading its command line parameters. This function depends on L<Config::CmdRC>.
The configuration file is `.from_unixtimerc`. And the location of a configuration file is C</etc> or C<$HOME> but if the C<CMDRC_DIR> environment variable is set, `from_unixtime` will look for configuration file in that directory or C<current directo...
A sample configuration file might read:
format: %Y/%m/%d %H:%M:%S
start-bracket: ' ('
=head1 AUTHOR
Dai Okabayashi E<lt>bayashi@cpan.orgE<gt>
( run in 1.297 second using v1.01-cache-2.11-cpan-49f99fa48dc )