summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 490dff02..bf38cb4f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -25,6 +25,7 @@ sub N {
#- tool functions.
sub basename { local $_ = shift; s|/*\s*$||; s|.*/||; $_ }
+sub localtime2changelog { scalar(localtime($_[0])) =~ /(.*) \S+ (\d{4})$/ && "$1 $2" };
#- create a new urpm object.
sub new {