]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Posting/_lib.pm
added syncmail in checkoutlist
[selfforum.git] / selfforum-cgi / shared / Posting / _lib.pm
index dfac4686931391a81b4706ba5424b0d0da7219e6..886d9573b748ec4d6fae4c1acc542caaacfba737 100644 (file)
@@ -5,7 +5,7 @@ package Posting::_lib;
 # File:        shared/Posting/_lib.pm                                          #
 #                                                                              #
 # Authors:     AndrĂ© Malo <nd@o3media.de>, 2001-03-03                          #
 # File:        shared/Posting/_lib.pm                                          #
 #                                                                              #
 # Authors:     AndrĂ© Malo <nd@o3media.de>, 2001-03-03                          #
-#              Frank Schoenmann <fs@tower.de>, 2001-06-02                      #
+#              Frank Schoenmann <fs@tower.de>, 2001-06-04                      #
 #                                                                              #
 # Description: Message access interface, time format routines                  #
 #                                                                              #
 #                                                                              #
 # Description: Message access interface, time format routines                  #
 #                                                                              #
@@ -40,6 +40,8 @@ use base qw(Exporter);
   hr_time
   short_hr_time
   long_hr_time
   hr_time
   short_hr_time
   long_hr_time
+  very_short_hr_time
+  month
 
   get_all_threads
   create_forum_xml_string
 
   get_all_threads
   create_forum_xml_string
@@ -728,11 +730,17 @@ sub long_hr_time ($) {
   sprintf ('%s, %02d. %s %04d, %02d:%02d:%02d Uhr', $wday[$wday], $day, $month[$mon], $year+1900, $hour, $min, $sek);
 }
 
   sprintf ('%s, %02d. %s %04d, %02d:%02d:%02d Uhr', $wday[$wday], $day, $month[$mon], $year+1900, $hour, $min, $sek);
 }
 
+sub very_short_hr_time($) {
+  my (undef, $min, $hour, $day, $mon, $year) = localtime ($_[0]);
+
+  sprintf ('%02d. %02d. %04d', $day, $mon+1, $year+1900);
+}
+
 sub month($) {
     my @month = (qw(Januar Februar), "M\303\244rz", qw(April Mai Juni Juli August September Oktober November Dezember));
                                      # ^^^^^^^^ - UTF8 #
 
 sub month($) {
     my @month = (qw(Januar Februar), "M\303\244rz", qw(April Mai Juni Juli August September Oktober November Dezember));
                                      # ^^^^^^^^ - UTF8 #
 
-    return $month[$_[0]];
+    return $month[$_[0]-1];
 }
 
 # ====================================================
 }
 
 # ====================================================

patrick-canterino.de