Revision at a time
Syntax
revisionAt($dateTime)
Description
Determines the revision that was valid at the given time, i.e. the latest revision created not later than the given date.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
dateTime | Time | The time at which the revision should be determined. | yes |
Return value
Type: Revision
The revision that was current at the given time.
Examples
Example 1
revisionAt(dateTime(2023,8,28,12))
Output:
Revision | Date | Author |
---|---|---|
6.040 | 28.09.2023, 10:40:15 | Clever, Fred |
This determines the revision that was current at 12 noon on September 28, 2023. In this example revision 6040.
Example 2
revisionAt(dateTime(2023,8,28))
Output:
Revision | Date | Author |
---|---|---|
6.004 | 27.09.2023, 14:56:54 | Super, Administrator |
This determines the revision that was current on September 28, 2023 at midnight. In this example revision 6004.
Example 3
revisionAt(now())
Output:
Revision | Date | Author |
---|---|---|
7.989 | 21.11.2023, 07:58:10 |
now()
is used to determine the revision that is current at the time of execution. In this example revision 7989.