Time of Week Document
A time of week document contains multiple documents, each qualified with a particular time of the day and day of the week. When accessed, a time of week document evaluates the current time of the week and accesses a single document from its list. The document selected is based on a time range starting at the day and time specified until the day and time specified by the subsequent document in time or until the end of the week, if this is the last document. The week starts on Sunday morning.
The order of the operands is not important in determining the beginning or end of a range. The expression parser puts them back in the proper chronological order based on the specified day of week or time of day used when qualifying each one of the document operands.
For example, the document expression:
DOC[D1.txt] @ MON @ T[10:59 AM]
|| DOC[D2.txt] @ TUE @ T[11:58 PM]
|| DOC[] @ MON @ T[1:00 PM]
-
From Sunday morning to Monday 10:58:59 AM nothing can be accessed.
-
From Monday 10:59:00 AM to Monday 12:59:59 PM, DOC[D1.txt] can be accessed. (DOC[D1.txt] @ MON @ T[10:59 AM])
-
From Monday 1:00:00 PM to Tuesday 11:57:00PM, nothing can be accessed. (|| DOC[] @ MON @ T[1:00 PM]) and (|| DOC[D2.txt] @ TUE @ T[11:58 PM])
-
From Tuesday 11:58:00PM until the end of the week, DOC[D2.txt] can be played back. (|| DOC[D2.txt] @ TUE @ T[11:58 PM])