2 new methods for Schema.org markup added:
print_r($page->fieldname->getjsonLDTimes());
returns an array like this:
Array ( [0] => Mo,Tu,We 08:00-12:00 [1] => Mo,Th 13:00-18:00 [2] => Th 08:00-11:00 )
Can be used to create the markup by yourself or
echo $page->fieldname->renderjsonLDTimes();
returns a string like this:
"Mo,Tu,We 08:00-12:00", "Mo,Th 13:00-18:00", "Th 08:00-11:00"
You can use the second method in schema.org Local Business opening hours as followed:
.....
"openingHours": [
"Mo,Th,Sa 11:00-14:30",
"Mo,Th 17:00-21:30",
"Fr,Sa 17:00-22:00"
],
.....
Best regards