diff options
-rw-r--r-- | core/datetime.xml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/core/datetime.xml b/core/datetime.xml index b27e771..76d0bb3 100644 --- a/core/datetime.xml +++ b/core/datetime.xml @@ -18,12 +18,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. --> <package xmlns="http://www.lovullo.com/rater" - xmlns:c="http://www.lovullo.com/calc" - core="true" - desc="Date and time"> + xmlns:t="http://www.lovullo.com/rater/apply-template" + xmlns:c="http://www.lovullo.com/calc" + core="true" + desc="Date and time"> <import package="base" /> + <import package="assert" /> + <import package="vector/cmatch" /> + Providing the current timestamp externally allows the system to be wholly deterministic. @@ -35,6 +39,11 @@ desc="Unix timestamp representing the current time of the system (clock time), as it should be perceived" /> + <t:assert failure="Missing Unix timestamp for timestamp_current"> + <t:match-gt on="timestamp_current" value="ZERO" /> + </t:assert> + + This system does not handle its own arthiemtic to figure out the current date components from the given timestamp. |