osmlab / jsopeninghours

JavaScript opening_hours parser.
7 stars 2 forks source link

Support "official" examples #1

Open tyrasd opened 11 years ago

tyrasd commented 11 years ago

From the list of examples on the wiki the following don't work ( 7 5 out of 10 :-1: ):

Also, a list of days like "Mo,Fr 10:00-11:00" doesn't seem to work.

iandees commented 11 years ago
tyrasd commented 11 years ago

Multiple opening hour ranges in a particular day range are not supported

I'd say this should be supported even in a minimal implementation of opening_hours. (Shops can have midday breaks or restaurants may only open for lunch and dinner.)

"off" is not supported (how is that any different than being closed?)

Just like a list of days, this syntax is used as a short-cut. Mo-Sa 10:00-20:00; Tu off instead of Mo 10:00-20:00; We-Sa 10:00-20:00;.