Time of Day Document
A time of day document contains multiple documents, each qualified with a particular time of the day. When accessed, a time of day document evaluates the current time of the day and accesses a single document from its list. The document selected is based on a time range starting at the time specified until the time specified by the subsequent document in time range or until the end of the day if this is the last document.
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 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 the beginning of the day until 10:58:59 AM nothing can be accessed.
-
From 10:59:00 AM until 12:59:59 PM, DOC[D1.txt]can be accessed. (DOC[D1.txt] @ T[10:59 AM] || DOC[D2.txt] @ T[11:58 PM])
-
From 1:00:00 PM until 11:57:00 PM, nothing can be accessed. (|| DOC[] @ T[1:00 PM]) and (|| DOC[D2.txt] @ T[11:58 PM] )
-
From 11:58:00 PM until the end of the day, DOC[D2.txt] can be accessed. (|| DOC[D2.txt] @ T[11:58 PM] )