yapi-net/YandexDirect — Issue #3: WorkTime in ContactInfo as a struct
Author: kostrse
Created: 2012-02-19 15:44:49+00:00
State: open

Parse WorkTime string in the ContactInfo to a specialized struct.

> The operating hours or client service hours of the business. Set as a string that specifies the range of days of the week and work hours with accuracy to the minute. Days of the week are defined by the numbers from 0 to 6, where 0 is Monday and 6 is Sunday. String format:
"day_from;day_to;hour_from;minute_from;hour_to;minute_to"
For example, the string "0;4;10;0;18;0" sets the following schedule:
0;4 — Monday to Friday
10;0 — from 10:00 am
18;0 — to 6:00 pm
The schedule may consist of several strings in this format, for example: "0;4;10;0;18;0;5;6;11;0;16;0". Here, in addition to the previous example, the schedule also includes:
5;6 — Saturday and Sunday
11;0 — from 11:00 am
16;0 — to 4:00 pm