| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# Copyright (c) 1995-2009 Graham Barr. This program is free |
|
2
|
|
|
|
|
|
|
# software; you can redistribute it and/or modify it under the same terms |
|
3
|
|
|
|
|
|
|
# as Perl itself. |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Date::Format; |
|
6
|
|
|
|
|
|
|
|
|
7
|
6
|
|
|
6
|
|
178311
|
use strict; |
|
|
6
|
|
|
|
|
9
|
|
|
|
6
|
|
|
|
|
311
|
|
|
8
|
|
|
|
|
|
|
require Exporter; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '2.34'; # VERSION: generated |
|
11
|
|
|
|
|
|
|
# ABSTRACT: Date formatting subroutines |
|
12
|
|
|
|
|
|
|
|
|
13
|
6
|
|
|
6
|
|
1046
|
use Date::Format::Generic; |
|
|
6
|
|
|
|
|
13
|
|
|
|
6
|
|
|
|
|
1126
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
|
16
|
|
|
|
|
|
|
our @EXPORT = qw(time2str strftime ctime asctime); |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub time2str ($;$$) |
|
19
|
|
|
|
|
|
|
{ |
|
20
|
152
|
|
|
152
|
1
|
414265
|
Date::Format::Generic->time2str(@_); |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub strftime ($\@;$) |
|
24
|
|
|
|
|
|
|
{ |
|
25
|
1
|
|
|
1
|
1
|
1229
|
Date::Format::Generic->strftime(@_); |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub ctime ($;$) |
|
29
|
|
|
|
|
|
|
{ |
|
30
|
0
|
|
|
0
|
1
|
|
my ($t,$tz) = @_; |
|
31
|
0
|
|
|
|
|
|
Date::Format::Generic->time2str("%a %b %e %T %Y\n", $t, $tz); |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub asctime (\@;$) |
|
35
|
|
|
|
|
|
|
{ |
|
36
|
0
|
|
|
0
|
1
|
|
my ($t,$tz) = @_; |
|
37
|
0
|
|
|
|
|
|
Date::Format::Generic->strftime("%a %b %e %T %Y\n", $t, $tz); |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |