
bryancarney at gmail
Jul 18, 2012, 2:42 PM
Views: 566
Permalink
|
|
Story->get_cover_date (minus x days)
|
|
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
|