Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WorkTime in ContactInfo as a struct #3

Open
kostrse opened this issue Feb 19, 2012 · 0 comments
Open

WorkTime in ContactInfo as a struct #3

kostrse opened this issue Feb 19, 2012 · 0 comments

Comments

@kostrse
Copy link

kostrse commented Feb 19, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant