Code backup
This commit is contained in:
2026-05-10 16:59:01 +02:00
commit 368d6fafea
796 changed files with 315310 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/perl -w
use strict;
use warnings;
use Time::Piece;
my $bat_expire = "10/14/2023";
if (Time::Piece->strptime($bat_expire, "%m/%d/%Y") > localtime) {
print "Battery replacement is recommended by $bat_expire, according to the UPS estimated life algorithm.\n";
} else {
print "The recommended battery replacement date calculated by the UPS algorithm was $bat_expire.\n";
}