Schema.org午休时间开放时间 [英] Schema.org opening hours with lunch break

查看:155
本文介绍了Schema.org午休时间开放时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的办公室周一至周五8-12,然​​后是1-5。换句话说,我们有一个小时的午休时间,办公室关闭。

My office is available Mon-Fri from 8-12, and then 1-5. In other words, we have a one hour lunch break where the office is closed.

我如何用Schema.org表达这个?

How can I express this with Schema.org?

我可以在同一个代码中设置两个时间戳吗?

Am I allowed to have two time stamps in the same code like this?

<time itemprop="openingHours" datetime="Mo,Tu,We,Th,Fr 08:00-12:00 13:00-17:00">Monday through Friday, 8 a.m. to noon</time>


推荐答案

而不是使用 openingHours (似乎有点不明确),你可能想要使用 openingHoursSpecification

Instead of using openingHours (which seems to be somewhat underspecified), you might want to use openingHoursSpecification.

这允许您使用(在您的情况下,多个) OpeningHoursSpecification 值。

This allows you to use (in your case, multiple) OpeningHoursSpecification values.

(附注:使用时间元素 openingHours 无效。)

(Side note: using the time element for openingHours is not valid.)

这篇关于Schema.org午休时间开放时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆