Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users
Re: Story->get_cover_date (minus x days)
 

Index | Next | Previous | View Flat


ps at phillipadsmith

Jul 18, 2012, 4:24 PM


Views: 1310
Permalink
Re: Story->get_cover_date (minus x days) [In reply to]

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
>
> 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?


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

Phillip.

--
Phillip Smith
http://phillipadsmith.com
http://twitter.com/phillipadsmith
http://linkedin.com/in/phillipadsmith

Save our in-boxes! http://emailcharter.org

Subject User Time
Story->get_cover_date (minus x days) bryancarney at gmail Jul 18, 2012, 2:42 PM
    Re: Story->get_cover_date (minus x days) ps at phillipadsmith Jul 18, 2012, 4:24 PM
    Re: Story->get_cover_date (minus x days) david at justatheory Jul 19, 2012, 4:40 AM
    Re: Story->get_cover_date (minus x days) bryancarney at gmail Jul 19, 2012, 5:49 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.