Skip to content

Instantly share code, notes, and snippets.

@Altreus
Created September 28, 2010 09:46
Show Gist options
  • Save Altreus/600723 to your computer and use it in GitHub Desktop.
Save Altreus/600723 to your computer and use it in GitHub Desktop.
sub head_data {
my $self = shift;
my $data = $self->next::method();
$data->{date_of_last_entry}
= sprintf('%d-%02d-%02dT%02d:%02d:%02d',
@{$self->{entries}[-1]}{qw(yr mo_num da hr min)}, 0);
return $data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment