eT4® META > GeoRss > GeoRss Item > Default > ec:timeintervalsNew |
Copy Code | |
---|---|
<item> [...] <ec:timeIntervalsNew> [...] </ec:timeIntervalsNew> [...] </item> |
Dates/Openinghours.
These TimeIntervals are rules based on daily, weekly, monthly, yearly or single frequencies. The rules can be mixed. Events shall not overlap. DateTimes have to be in IS= 8601 Format: yyyy-MM-DDThh:mm:ss+hh:mm + diff to UTC. StartTime is inclusive, EndTime exclusive. TimeZone has to be IANA Time Zone Database ID and is obligatory (for germany, use Europe/Berlin).
There are different types to transfer the information.
01.09.2015 - 15.09.2015 whole day event
Copy Code | |
---|---|
<item> [...] <ec:timeIntervalsNew> <ec:timeInterval start="2015-09-01T00:00:00+02:00" end="2015-09-16T00:00:00+02:00" tz="Europe/Berlin" freq="single" /> </ec:timeIntervalsNew> [...] </item> |
01.09.2015 from 8 until 17
Copy Code | |
---|---|
<item> [...] <ec:timeIntervalsNew> <ec:timeInterval start="2015-09-01T08:00:00+02:00" end="2015-09-01T17:00:00+02:00" tz="Europe/Berlin" freq="single" /> </ec:timeIntervalsNew> [...] </item> |
01.09.2015 - 05.09.2015: from 08-12 and 13-17
Copy Code | |
---|---|
<item> [...] <ec:timeIntervalsNew> <ec:timeInterval start="2015-09-01T08:00:00+02:00" end="2015-09-01T12:00:00+02:00" tz="Europe/Berlin" freq="daily" repeatUntil="2015-09-06T00:00:00+02:00" /> <ec:timeInterval start="2015-09-01T13:00:00+02:00" end="2015-09-01T17:00:00+02:00" tz="Europe/Berlin" freq="daily" repeatUntil="2015-09-06T00:00:00+02:00" /> </ec:timeIntervalsNew> [...] </item> |
daily from 13 until 17 (opening hours gastro)
Copy Code | |
---|---|
<item> [...] <ec:timeIntervalsNew> <ec:daily> <ec:timeInterval start="2015-01-01T13:00:00+01:00" end="2015-01-01T17:00:00+01:00" tz="Europe/Berlin" freq="daily" repeatUntil="2020-01-01T00:00:00+01:00" /> </ec:timeIntervalsNew> [...] </item> |
monday - thursday, 8-12 and 13-18 and friday 8-12 (opening hours poi)
Copy Code | |
---|---|
<item> [...] <ec:timeIntervalsNew> <ec:timeInterval start="2015-01-01T08:00:00+01:00" end="2015-01-01T12:00:00+01:00" tz="Europe/Berlin" freq="weekly" repeatUntil="2020-01-01T00:00:00+01:00"> <ec:weekdays> <ec:weekday>1</ec:weekday> <!.. monday --> <ec:weekday>2</ec:weekday> <!.. tuesday --> <ec:weekday>3</ec:weekday> <!.. wednesday --> <ec:weekday>4</ec:weekday> <!.. thursday --> <ec:weekday>5</ec:weekday> <!..f riday --> </ec:weekdays> </ec:timeInterval> <ec:timeInterval start="2015-01-01T13:00:00+01:00" end="2015-01-01T18:00:00+T01:00" tz="Europe/Berlin" freq="weekly" repeatUntil="2020-01-01T00:00:00+01:00"> <ec:weekdays> <ec:weekday>1</ec:weekday> <!.. monday --> <ec:weekday>2</ec:weekday> <!.. tuesday --> <ec:weekday>3</ec:weekday> <!.. wednesday --> <ec:weekday>4</ec:weekday> <!.. thursday --> ;</ec:weekdays> ;</ec:timeInterval> ;</ec:timeIntervalsNew> [...] </item> |
All parameters:
Copy Code | |
---|---|
<item> [...] <ec:timeIntervalsNew> <ec:timeInterval ...> <!-- Attribute: start="2015-01-01T08:00:00+01:00" - startdate first date, obligatory end="2015-01-01T17:00:00+01:00" - enddate first date, obligatory tz="Europe/Berlin" - timezone, obligatory freq="single" - ruletype, obligaotry (single,daily,weekly,monthly,yearly) repeatUntil="2020-01-01T00:00:00+01:00" - enddate when repeated interval repeatCount="100" - max count repetition, use repeatUntil OR repeatCount, not both at once interval="1" - repetition-interval, default 1 dayOrdinal="2" weekday="0" - only with freq=monthly/yearly: every 2. sunday of month dayOfMonth="5" - only with freq=monthly/yearly: every 5. day of month month="5" - only with freq=yearly: which month --> <ec:weekdays> <!-- only with freq=weekly --> <ec:weekday>0</ec:weekday> <!-- 0=sunday - 6=saturday--> ... </ec:weekdays> </ec:timeInterval> [...] </ec:timeIntervalsNew> </item> |