Codebase list libdate-jd-perl / 11e867b
New upstream version 0.006 gregor herrmann 6 years ago
11 changed file(s) with 102 addition(s) and 105 deletion(s). Raw diff Collapse all Expand all
+0
-4
.cvsignore less more
0 Build Makefile
1 _build blib
2 META.json META.yml MYMETA.json MYMETA.yml Makefile.PL SIGNATURE
3 Date-JD-*
0 /Build
1 /Makefile
2 /_build
3 /blib
4 /META.json
5 /META.yml
6 /MYMETA.json
7 /MYMETA.yml
8 /Makefile.PL
9 /SIGNATURE
10 /Date-JD-*
3232 },
3333 dynamic_config => 0,
3434 meta_add => { distribution_type => "module" },
35 create_makefile_pl => "passthrough",
35 meta_merge => {
36 "meta-spec" => { version => "2" },
37 resources => {
38 bugtracker => {
39 mailto => "bug-Date-JD\@rt.cpan.org",
40 web => "https://rt.cpan.org/Public/Dist/".
41 "Display.html?Name=Date-JD",
42 },
43 },
44 },
3645 sign => 1,
3746 )->create_build_script;
3847
0 version 0.006; 2017-07-30
1
2 * no longer include a Makefile.PL in the distribution
3
4 * in documentation, use four-column indentation for all verbatim
5 material
6
7 * in META.{yml,json}, point to public bug tracker
8
9 * remove a couple of unused variables from the code
10
11 * convert .cvsignore to .gitignore
12
013 version 0.005; 2011-07-17
114
215 * introduce new conversion functions *_to_*nn and *_to_*nf, which
0 .cvsignore
0 .gitignore
11 Build.PL
22 Changes
33 MANIFEST
44 META.json
55 META.yml
6 Makefile.PL
76 README
87 lib/Date/JD.pm
98 t/d2d.t
33 "Andrew Main (Zefram) <zefram@fysh.org>"
44 ],
55 "dynamic_config" : 0,
6 "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110930001",
6 "generated_by" : "Module::Build version 0.4224",
77 "license" : [
88 "perl_5"
99 ],
1010 "meta-spec" : {
1111 "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
12 "version" : "2"
12 "version" : 2
1313 },
1414 "name" : "Date-JD",
1515 "prereqs" : {
1616 "build" : {
1717 "requires" : {
18 "Module::Build" : 0,
19 "Test::More" : 0,
18 "Module::Build" : "0",
19 "Test::More" : "0",
2020 "perl" : "5.006",
21 "strict" : 0,
22 "warnings" : 0
21 "strict" : "0",
22 "warnings" : "0"
2323 }
2424 },
2525 "configure" : {
2626 "requires" : {
27 "Module::Build" : 0,
27 "Module::Build" : "0",
2828 "perl" : "5.006",
29 "strict" : 0,
30 "warnings" : 0
29 "strict" : "0",
30 "warnings" : "0"
3131 }
3232 },
3333 "runtime" : {
3434 "conflicts" : {
35 "Math::BigRat" : 0
35 "Math::BigRat" : "< 0.13"
3636 },
3737 "requires" : {
38 "Carp" : 0,
39 "Exporter" : 0,
40 "parent" : 0,
38 "Carp" : "0",
39 "Exporter" : "0",
40 "parent" : "0",
4141 "perl" : "5.006",
42 "strict" : 0,
43 "warnings" : 0
42 "strict" : "0",
43 "warnings" : "0"
4444 }
4545 }
4646 },
4747 "provides" : {
4848 "Date::JD" : {
4949 "file" : "lib/Date/JD.pm",
50 "version" : "0.005"
50 "version" : "0.006"
5151 }
5252 },
5353 "release_status" : "stable",
5454 "resources" : {
55 "bugtracker" : {
56 "mailto" : "bug-Date-JD@rt.cpan.org",
57 "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=Date-JD"
58 },
5559 "license" : [
5660 "http://dev.perl.org/licenses/"
5761 ]
5862 },
59 "version" : "0.005"
63 "version" : "0.006",
64 "x_serialization_backend" : "JSON::PP version 2.93"
6065 }
22 author:
33 - 'Andrew Main (Zefram) <zefram@fysh.org>'
44 build_requires:
5 Module::Build: 0
6 Test::More: 0
7 perl: 5.006
8 strict: 0
9 warnings: 0
5 Module::Build: '0'
6 Test::More: '0'
7 perl: '5.006'
8 strict: '0'
9 warnings: '0'
1010 configure_requires:
11 Module::Build: 0
12 perl: 5.006
13 strict: 0
14 warnings: 0
11 Module::Build: '0'
12 perl: '5.006'
13 strict: '0'
14 warnings: '0'
1515 conflicts:
16 Math::BigRat: 0
16 Math::BigRat: '< 0.13'
1717 dynamic_config: 0
18 generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110930001'
18 generated_by: 'Module::Build version 0.4224, CPAN::Meta::Converter version 2.150010'
1919 license: perl
2020 meta-spec:
2121 url: http://module-build.sourceforge.net/META-spec-v1.4.html
22 version: 1.4
22 version: '1.4'
2323 name: Date-JD
2424 provides:
2525 Date::JD:
2626 file: lib/Date/JD.pm
27 version: 0.005
27 version: '0.006'
2828 requires:
29 Carp: 0
30 Exporter: 0
31 parent: 0
32 perl: 5.006
33 strict: 0
34 warnings: 0
29 Carp: '0'
30 Exporter: '0'
31 parent: '0'
32 perl: '5.006'
33 strict: '0'
34 warnings: '0'
3535 resources:
36 bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Date-JD
3637 license: http://dev.perl.org/licenses/
37 version: 0.005
38 version: '0.006'
39 x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
+0
-35
Makefile.PL less more
0 # Note: this file was auto-generated by Module::Build::Compat version 0.3800
1 require 5.006;
2
3 unless (eval "use Module::Build::Compat 0.02; 1" ) {
4 print "This module requires Module::Build to install itself.\n";
5
6 require ExtUtils::MakeMaker;
7 my $yn = ExtUtils::MakeMaker::prompt
8 (' Install Module::Build now from CPAN?', 'y');
9
10 unless ($yn =~ /^y/i) {
11 die " *** Cannot install without Module::Build. Exiting ...\n";
12 }
13
14 require Cwd;
15 require File::Spec;
16 require CPAN;
17
18 # Save this 'cause CPAN will chdir all over the place.
19 my $cwd = Cwd::cwd();
20
21 CPAN::Shell->install('Module::Build::Compat');
22 CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
23 or die "Couldn't install Module::Build, giving up.\n";
24
25 chdir $cwd or die "Cannot chdir() back to $cwd: $!";
26 }
27 eval "use Module::Build::Compat 0.02; 1" or die $@;
28
29 Module::Build::Compat->run_build_pl(args => \@ARGV);
30 my $build_script = 'Build';
31 $build_script .= '.com' if $^O eq 'VMS';
32 exit(0) unless(-e $build_script); # cpantesters convention
33 require Module::Build;
34 Module::Build::Compat->write_makefile(build_class => 'Module::Build');
4141
4242 COPYRIGHT
4343
44 Copyright (C) 2006, 2007, 2009, 2010, 2011
44 Copyright (C) 2006, 2007, 2009, 2010, 2011, 2017
4545 Andrew Main (Zefram) <zefram@fysh.org>
4646
4747 LICENSE
00 This file contains message digests of all files listed in MANIFEST,
1 signed via the Module::Signature module, version 0.68.
1 signed via the Module::Signature module, version 0.81.
22
33 To verify the content in this distribution, first make sure you have
44 Module::Signature installed, then type:
1313 -----BEGIN PGP SIGNED MESSAGE-----
1414 Hash: SHA1
1515
16 SHA1 4be5f8efa98273bce0a3a73e55da2f7849083a94 .cvsignore
17 SHA1 7e5c8ada474e0e74100e84808da3a91d3edfeced Build.PL
18 SHA1 72a34179a578636733543d6b6d9e9c66b9f1c43a Changes
19 SHA1 6d843cace73bb865bfd6971e0a9df746d114d5dc MANIFEST
20 SHA1 9c7302d547c86dc60b0e304e8defd36f7c9d27d6 META.json
21 SHA1 d19abca6686f0fc1c7da7ce18de6f996099e2832 META.yml
22 SHA1 a4df8e97ccd390a42212af5a9f4d0986c85e7a5f Makefile.PL
23 SHA1 a33b9d6c6232c444e2dfa56487c8757b3d334599 README
24 SHA1 de34f0dd3d8c047dd51fcadfb4eeb8b639eb8046 lib/Date/JD.pm
16 SHA1 182459a71a7ee215418f2590d38a761a2884275c .gitignore
17 SHA1 dcdf941014ddbc190800e64f8d707acea9de82d0 Build.PL
18 SHA1 98b24002d6fa0687b1a559b181997e0c05f7cd21 Changes
19 SHA1 592b76a5d68c99ac1fb440a9b7ce372dfd8cae9c MANIFEST
20 SHA1 82945e315074e4ae68a31b71dae3ed708ea9b29d META.json
21 SHA1 e0ab0142d996ae5d09becc3698f9f282df2d0039 META.yml
22 SHA1 0cc4dc79723fcefc070543be3c6f35336812a6d3 README
23 SHA1 967dc21def4e401fce49dd8bdd1a49a9ec55b506 lib/Date/JD.pm
2524 SHA1 f9b6517f8c0f2271a495bfe01891f2663e18cf43 t/d2d.t
2625 SHA1 904d9a4f76525e2303e4b0c168c68230f223c8de t/pod_cvg.t
2726 SHA1 65c75abdef6f01a5d1588a307f2ddfe2333dc961 t/pod_syn.t
2827 -----BEGIN PGP SIGNATURE-----
29 Version: GnuPG v1.4.10 (GNU/Linux)
28 Version: GnuPG v1
3029
31 iEYEARECAAYFAk4i5MMACgkQOV9mt2VyAVF50ACgidybwOjnoR4yrQdjBmMGupxJ
32 yvMAn1rmVojMTPJqVRf5L/xEt7WXXLjr
33 =3YOZ
30 iEYEARECAAYFAll9vIcACgkQOV9mt2VyAVGKTgCdGOm58OrrUjfDO9OLDUAgIGgQ
31 ElkAn2+X63JboqkvyZDgc1z3+B6qAJfn
32 =SFeV
3433 -----END PGP SIGNATURE-----
33
44 =head1 SYNOPSIS
55
6 use Date::JD qw(jd_to_mjd mjd_to_cjdnf cjdn_to_rd);
7
8 $mjd = jd_to_mjd($jd);
9 ($cjdn, $cjdf) = mjd_to_cjdnf($mjd, $tz);
10 $rd = cjdn_to_rd($cjdn, $cjdf);
11
12 # and 509 other conversion functions
6 use Date::JD qw(jd_to_mjd mjd_to_cjdnf cjdn_to_rd);
7
8 $mjd = jd_to_mjd($jd);
9 ($cjdn, $cjdf) = mjd_to_cjdnf($mjd, $tz);
10 $rd = cjdn_to_rd($cjdn, $cjdf);
11
12 # and 509 other conversion functions
1313
1414 =head1 DESCRIPTION
1515
176176
177177 use Carp qw(croak);
178178
179 our $VERSION = "0.005";
179 our $VERSION = "0.006";
180180
181181 use parent "Exporter";
182182 our @EXPORT_OK;
13511351 }
13521352
13531353 sub _ret_dn($) {
1354 my $dn = &_ret_dnn;
13551354 return wantarray ? &_ret_dnf : &_ret_dnn;
13561355 }
13571356
13591358 my $ediff = $jd_flavours{$src}->{epoch_jd} -
13601359 $jd_flavours{$dst}->{epoch_jd};
13611360 my $ediffh = $ediff == int($ediff) ? 0 : 0.5;
1362 my $ediffi = $ediff - $ediffh;
13631361 my $src_zone = !!$jd_flavours{$src}->{zone};
13641362 my $dst_zone = !!$jd_flavours{$dst}->{zone};
13651363 my($zp, $z1, $z2);
14291427
14301428 =head1 COPYRIGHT
14311429
1432 Copyright (C) 2006, 2007, 2009, 2010, 2011
1430 Copyright (C) 2006, 2007, 2009, 2010, 2011, 2017
14331431 Andrew Main (Zefram) <zefram@fysh.org>
14341432
14351433 =head1 LICENSE