Thread Startdatum - Enddatum: Alle Tage dazwischen als Liste
(11 answers)
Opened by Andi123 at 2017-07-05 15:51
Mit meinem Modul:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 use Scaliger (); my $begin = Scaliger->new( date => '1.1.1899' ); my $end = Scaliger->new( date => '3.2.1905' ); foreach my $jd( $begin->jd .. $end->jd ){ my $sca = Scaliger->new( jd => $jd ); # julian days print "$sca\n"; # using to string feature } Overload ermöglicht auch inkrementieren like $sca++ also sowas in der Art Code (perl): (dl
)
while( $begin->jd <= $end->jd ){ $begin++ } View full thread Startdatum - Enddatum: Alle Tage dazwischen als Liste |