projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d321787
)
Bug Fixing : Sub Output was mistakenly removed.
author
Henri-Damien LAURENT
<henridamien@koha-fr.org>
Tue, 27 Jan 2009 15:32:53 +0000
(16:32 +0100)
committer
Henri-Damien LAURENT
<henridamien@koha-fr.org>
Tue, 27 Jan 2009 15:32:53 +0000
(16:32 +0100)
C4/Dates.pm
patch
|
blob
|
history
diff --git
a/C4/Dates.pm
b/C4/Dates.pm
index
578e08e
..
8af350c
100644
(file)
--- a/
C4/Dates.pm
+++ b/
C4/Dates.pm
@@
-144,6
+144,11
@@
sub init ($;$$) {
return $self;
}
+sub output ($;$) {
+ my $self = shift;
+ my $newformat = (@_) ? _recognize_format(shift) : _prefformat();
+ return (eval {POSIX::strftime($posix_map{$newformat}, @{$self->{'dmy_arrayref'}})} || undef);
+}
sub today ($;$) { # NOTE: sets date value to today (and returns it in the requested or current format)
my $class = shift;
$class = ref($class) || $class;