line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $File: //member/autrijus/Locale-Hebrew-Calendar/Calendar.pm $ $Author: autrijus $ |
2
|
|
|
|
|
|
|
# $Revision: #3 $ $Change: 3587 $ $DateTime: 2003/01/17 05:30:22 $ |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Locale::Hebrew::Calendar; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
1108
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
71
|
|
7
|
1
|
|
|
1
|
|
6
|
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
99
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Locale::Hebrew::Calendar - Jewish Calendar |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 VERSION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
This document describes version 0.03 of Locale::Hebrew::Calendar, |
16
|
|
|
|
|
|
|
released January 17, 2003. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# 'g2j' and 'j2g' may be exported explicitly |
21
|
|
|
|
|
|
|
use Locale::Hebrew::Calendar; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Gregorian to Jewish |
24
|
|
|
|
|
|
|
($d, $m, $y) = Locale::Hebrew::Calendar::g2j($dd, $mm, $yy); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Jewish to Gregorian |
27
|
|
|
|
|
|
|
($d, $m, $y) = Locale::Hebrew::Calendar::j2g($dd, $mm, $yy); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 DESCRIPTION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
This is an XSUB interface to a code which can be found on several main |
32
|
|
|
|
|
|
|
FTP servers. Neither Ariel nor Autrijus have contacted the author, but |
33
|
|
|
|
|
|
|
"He who says things in the name of their originators brings redemption |
34
|
|
|
|
|
|
|
to the world" -- The actual code was written by Amos Shapir. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
1
|
|
|
1
|
|
6
|
use Exporter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
39
|
1
|
|
|
1
|
|
5
|
use DynaLoader; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
172
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
@ISA = qw(Exporter DynaLoader); |
42
|
|
|
|
|
|
|
@EXPORT = (); |
43
|
|
|
|
|
|
|
@EXPORT_OK = qw( g2j j2g ); |
44
|
|
|
|
|
|
|
$VERSION = '0.03'; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__PACKAGE__->bootstrap($VERSION); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub g2j { |
49
|
0
|
|
|
0
|
0
|
|
@{_g2j(shift, shift, shift)}; |
|
0
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub j2g { |
53
|
0
|
|
|
0
|
0
|
|
@{_j2g(shift, shift, shift)}; |
|
0
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |