Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

WorkTime in ContactInfo as a struct #3

@kostrse

Description

@kostrse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions