You are here

public function ActiveHoursInterface::getRanges in SMS Framework 8

Same name and namespace in other branches
  1. 2.x modules/sms_user/src/ActiveHoursInterface.php \Drupal\sms_user\ActiveHoursInterface::getRanges()
  2. 2.1.x modules/sms_user/src/ActiveHoursInterface.php \Drupal\sms_user\ActiveHoursInterface::getRanges()

Get ranges converted to local timezone and sorted chronologically.

Parameters

string|\DateTimeZone $timezone: A timezone string or object.

Return value

\Drupal\sms_user\ActiveHoursDates[] A array of date pairs sorted chronologically by start dates.

1 method overrides ActiveHoursInterface::getRanges()
ActiveHours::getRanges in modules/sms_user/src/ActiveHours.php
Get ranges converted to local timezone and sorted chronologically.

File

modules/sms_user/src/ActiveHoursInterface.php, line 57

Class

ActiveHoursInterface
Defines interface for the user active hours service.

Namespace

Drupal\sms_user

Code

public function getRanges($timezone);