I had to go a bit roundabout to get the date in my desired format, but 7
days prior to a cover date because I can't find documentation on the
options of story->get_cover_date or an alternative
i.e.:
my $coverdate = $story->get_cover_date;
my $coverdateobj = str2time($coverdate);
my $coverdateobjweek = ($coverdateobj - (3600 * 24 * 7));
my $coverstring = time2str('%e %B %Y', $coverdateobjweek);
Can someone recommend some reading?
Thanks kindly,
Bryan
days prior to a cover date because I can't find documentation on the
options of story->get_cover_date or an alternative
i.e.:
my $coverdate = $story->get_cover_date;
my $coverdateobj = str2time($coverdate);
my $coverdateobjweek = ($coverdateobj - (3600 * 24 * 7));
my $coverstring = time2str('%e %B %Y', $coverdateobjweek);
Can someone recommend some reading?
Thanks kindly,
Bryan