The manakai project

Web::DateTime::WeeklyTimeRange

Weekly time ranges

SYNOPSIS

  use Web::DateTime::WeeklyTimeRange;
  $interval = Web::DateTime::WeeklyTimeRange->new_from_weekdays_and_time_ranges
      ([0, 0, 1, 1, 1, 0, 0], [[120 => 240], [360 => 1200]]);
  warn $interval->to_weekly_time_range_string;

DESCRIPTION

The Web::DateTime::WeeklyTimeRange class represents a weekly time range.

METHODS

Following methods are available:

$wr = Web::DateTime::WeeklyTimeRange->new_from_weekdays_and_time_ranges ($weekdays, $ranges)

Create a new weekly time range object from two hash references used as internal data structures.

$string = $interval->to_weekly_time_range_string

Return the string representing the weekly time range [SCHEMAORG].

SPECIFICATION

SCHEMAORG

Schema.org <http://schema.org/>.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2014 Wakaba <wakaba@suikawiki.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.