line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
#* |
3
|
|
|
|
|
|
|
#* Info: DateTime types definitions module |
4
|
|
|
|
|
|
|
#* Author: Pawel Guspiel (neo77) |
5
|
|
|
|
|
|
|
#* |
6
|
|
|
|
|
|
|
#* This module keeps validation functions. You can of course add your modules which uses this and will add additional checks |
7
|
|
|
|
|
|
|
#* Build in types for Params::Dry |
8
|
|
|
|
|
|
|
#* |
9
|
|
|
|
|
|
|
package Params::Dry::Types::DateTime; |
10
|
|
|
|
|
|
|
{ |
11
|
3
|
|
|
3
|
|
1256
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
98
|
|
12
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
69
|
|
13
|
3
|
|
|
3
|
|
13
|
use utf8; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
27
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# --- version --- |
16
|
|
|
|
|
|
|
our $VERSION = 1.20_03; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
#=------------------------------------------------------------------------ { use, constants } |
19
|
|
|
|
|
|
|
|
20
|
3
|
|
|
3
|
|
195
|
use Params::Dry::Types qw(:const); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
343
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
#=------------------------------------------------------------------------ { module public functions } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
}; |
25
|
|
|
|
|
|
|
0115 && 0x4d; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
#+ End of Params::Dry::Types::DateTime |
28
|
|
|
|
|
|
|
__END__ |