NAME

Podius::Property::DateRanges - date ranges component property


SYNOPSIS

  use Podius::Property::DateRanges;
  $d = new Podius::Property::DateRanges;
  $d->access([[923849502, 923849600], [923850000, 923850333]]);
  print $d->as_string('%d-%b-%Y %T', '; ');


DESCRIPTION

This module implements list of date ranges, where each range is represented by starting and ending date (unix time).

DateRanges is inherited ScalarTable with only two columns 'Date From' and 'Date To'.


REQUIREMENTS

the Exception manpage, the Podius::Property::ScalarTable manpage, the Date::TimeFormat manpage.


METHODS

as_string

parameters
  * date format (optional, default is '%Y-%m-%d')
  * outer delimiter (optional, default is ', ')
  * inner delimiter (optional, default is ' - ')
returns
Property value. undef means no property value is set.