Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libdate-pcalc-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
tools
[ DIR ]
drwxr-xr-x
EXAMPLES.txt.gz
7.24
KB
-rw-r--r--
TOOLS.txt.gz
1.98
KB
-rw-r--r--
age_in_days_eu.pl.gz
1.42
KB
-rw-r--r--
age_in_days_us.pl.gz
1.42
KB
-rw-r--r--
anniversaries.pl
2.26
KB
-rwxr-xr-x
bug.pl
764
B
-rwxr-xr-x
cal.c
2.71
KB
-rw-r--r--
calendar.pl.gz
5.65
KB
-rw-r--r--
datecalc.pl.gz
2.03
KB
-rw-r--r--
delta.pl
2.54
KB
-rwxr-xr-x
holidays.pl
1.98
KB
-rwxr-xr-x
income.pl
2.86
KB
-rwxr-xr-x
linearcal.pl
1.94
KB
-rwxr-xr-x
nth_weekday.pl
2.24
KB
-rwxr-xr-x
time.pl
1.28
KB
-rwxr-xr-x
vacation.pl
1016
B
-rwxr-xr-x
weiberfastnacht.pl
1.28
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : holidays.pl
#!/usr/bin/perl -w ############################################################################### ## ## ## Copyright (c) 2001 - 2009 by Steffen Beyer. ## ## All rights reserved. ## ## ## ## This program is free software; you can redistribute it ## ## and/or modify it under the same terms as Perl itself. ## ## ## ############################################################################### BEGIN { eval { require bytes; }; } use strict; use Date::Pcalendar::Profiles qw( $Profiles ); use Date::Pcalendar::Year; use Date::Pcalc::Object qw(:ALL); sub print_holidays { my($year) = shift_year(\@_); my($lang) = shift; my($prof) = shift; my($newl) = Decode_Language($lang); my($full,$half,$last,$oldl,$oldf,$i,$date,@labels,$dow,$day); die "No such language '$lang'" unless ($newl); die "No such calendar profile '$prof'" unless (exists $Profiles->{$prof}); $year = Date::Pcalendar::Year->new( $year, $Profiles->{$prof} ); $full = $year->vec_full(); $half = $year->vec_half(); $last = $year->val_days(); $oldl = Language($newl); $oldf = Date::Pcalc->date_format(1); for ( $i = 0; $i < $last; $i++ ) { $date = $year->index2date($i); @labels = $year->labels($date); if (@labels > 1) { $dow = substr(shift(@labels),0,3); $day = $full->contains($i) ? "+" : $half->contains($i) ? "#" : "-"; print "$dow $date $day ", join(", ", @labels), "\n"; } } Language($oldl); Date::Pcalc->date_format($oldf); } unless (@ARGV == 3) { die "Usage: perl holidays.pl YEAR LANGUAGE PROFILE\n"; } print_holidays( @ARGV ); __END__
Close