1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-05 08:34:22 +03:00
inform7/retrospective/6L02/I6T/Load-Times.i6t
2019-02-05 00:44:07 +00:00

40 lines
1.1 KiB
Plaintext

B/ltims: Load Times Template.
@Purpose: To load the Times of Day language definition element.
@-------------------------------------------------------------------------------
@p Data type definitions.
@c
{-lines:type}
TIME_TY:
apply-macro:#BASE-KIND
singular:time
plural:times
instance-of:WORD_VALUE_TY
instance-of:ARITHMETIC_VALUE_TY
instance-of:SAYABLE_VALUE_TY
default-value:540
comparison-routine:signed
can-exchange:yes
loop-domain-schema:for (*1=0: *1<TWENTY_FOUR_HOURS: *1++)
has-i6-GPR:yes
explicit-i6-GPR:TIME_TOKEN
i6-printing-routine:PrintTimeOfDay
i6-printing-routine-actions:PrintTimeOfDay
constant-compilation-method:literal
description:a time
documentation-reference:kind_time
index-default-value:9:00 AM
index-minimum-value:1 minute
index-maximum-value:23 hours 59 minutes
index-priority:2
specification-text:A time of day, written in the form '2:34 AM' or '12:51 PM', or a length of time such as '10 minutes' or '3 hours 31 minutes', which must be between 0 minutes and 23 hours 59 minutes inclusive.
{-endlines}
{-callv:Kinds::Interpreter::batch_done}