XIRCD/Component/Time.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package XIRCD::Component::Time;
2 use strict;
3 use MooseX::POE;
4 use XIRCD::Component;
5 with qw(XIRCD::Role);
6 use DateTime;
7  
8 has 'nick' => (
9 is => 'rw',
10 isa => 'Str',
11 );
12  
13 event start => sub {
14 my $date = DateTime->now(time_zone => 'Asia/Tokyo');
15 publish_message self->nick => $date->strftime("%Y/%m/%d %H:%M:%S");
16 delay 'start', 10;
17 };
18  
19  
20 1;
21