%EXPORT_TAGS = (
common => [qw(interval_to_seconds seconds_to_interval sendmail tree_filter)],
daemon => [qw(safe_fork set_psname daemonize)],
- datetime => [qw(clense_ISO8601 gmtime_ISO8601 interval_to_seconds seconds_to_interval)],
+ datetime => [qw(cleanse_ISO8601 gmtime_ISO8601 interval_to_seconds seconds_to_interval)],
);
Exporter::export_ok_tags('common','daemon','datetime'); # add aa, cc and dd to @EXPORT_OK
return sprintf('%d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d+00:00', $y, $M, $d, $h, $m, $s);
}
-sub clense_ISO8601 {
+sub cleanse_ISO8601 {
my $self = shift;
my $date = shift || $self;
if ($date =~ /^\s*(\d{4})-?(\d{2})-?(\d{2})/o) {