}
sub hr_time ($) {
- my (undef, $min, $hour, $day, $mon, $year) = germantime (shift);
+ my (undef, $min, $hour, $day, $mon, $year) = localtime (shift);
sprintf ('%02d. %s %04d, %02d:%02d Uhr', $day, month($mon+1), $year+1900, $hour, $min);
}
sub short_hr_time ($) {
- my (undef, $min, $hour, $day, $mon, $year) = germantime (shift);
+ my (undef, $min, $hour, $day, $mon, $year) = localtime (shift);
sprintf ('%02d. %02d. %04d, %02d:%02d Uhr', $day, $mon+1, $year+1900, $hour, $min);
}
sub long_hr_time ($) {
my @wday = qw(Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag);
- my ($sek, $min, $hour, $day, $mon, $year, $wday) = germantime (shift);
+ my ($sek, $min, $hour, $day, $mon, $year, $wday) = localtime (shift);
sprintf ('%s, %02d. %s %04d, %02d:%02d:%02d Uhr', $wday[$wday], $day, month($mon+1), $year+1900, $hour, $min, $sek);
}
sub very_short_hr_time($) {
- my (undef, $min, $hour, $day, $mon, $year) = germantime (shift);
+ my (undef, $min, $hour, $day, $mon, $year) = localtime (shift);
sprintf ('%02d. %02d. %04d', $day, $mon+1, $year+1900);
}
################################################################################
use strict;
+use vars qw(
+ @EXPORT
+ $VERSION
+);
+
+################################################################################
+#
+# Version check
+#
+$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
################################################################################
#
# Export
#
use base 'Exporter';
-@Time::German::EXPORT = qw(germantime);
+@EXPORT = qw(localtime);
################################################################################
#
95 => [84, 266]
);
-### germantime () ##############################################################
+### localtime () ###############################################################
#
# like 'localtime', but system independent
#
#
# Return: same as localtime, but german time ;-)
#
-sub germantime (;$) {
+sub localtime (;$) {
my $time = shift;
$time = time unless defined $time;