ps at phillipadsmith
Jul 18, 2012, 4:24 PM
On 2012-07-18, at 5:42 PM, Bryan Carney wrote:
> 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
> 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?
Sorry, are you trying to "get the cover date" ( $story->get_cover_date ) of a particular story, or something else?
All documented at http://bricolagecms.org/docs/current/api/ under Bric::Biz::Asset::Business::Story
Or, if you're trying to get a LIST of stories, look under Bric::Biz::Asset::Business::Story->list
Save our in-boxes! http://emailcharter.org