end
Key of the [time] table. Qualified name: time.end
First day after the run, after start by a whole number of steps.
- Type
- datea TOML date or "YYYY-MM-DD"
- Unit
- none
- Default
- requiredexample: 2019-01-01
- Valid range
- first day of a monthyears 1900 to 9999
- Set in
- [time]required table
- Since
- 0.1engine 0.1.0
Description
end is required: a [time] table without it stops with E1006. The value is the first day of a month, written as a TOML date (2018-01-01) or a string "2018-01-01". A value that is not a date stops with E1010; a date that is not the first day of a month stops with E1011. With start and step, end must come after start by a whole number of steps (E1012).
Example
# scenario.toml
[scenario]
name = "tracer"
seed = 20180101
[time]
start = 2018-01-01
end = 2019-01-01 # this page
[plugins."test/ticker"]Run it with the engine built from source: cohortix run scenario.toml --output output/example.
Related
When the key is misspelled
Written edn, the key is refused before anything runs, as missing and as unknown, with the nearest accepted name:
error[E1006]: [time] has no `end`, which is required and must be a date YYYY-MM-DD.
--> scenario.toml:7:2
= fix: Add `end` under [time], as a date YYYY-MM-DD, for example `end = 2019-01-01`.
error[E1022]: Unknown key `edn` in [time]; did you mean `end`?
--> scenario.toml:9:1
= fix: Rename `edn` to `end`, or remove it; the accepted keys of [time] are "start", "end", "step".
Errors that name this key
E1006: [time] has noend, which is required and must be ….E1008:endmust be …, but it is ….E1010:endis …, which is not a calendar date.E1011:endis …, which is not the first day of a month.E1012: [time] end … is not after start … by a whole number of … steps.E1022: Unknown key…in [time]; did you mean…?
See also
- [time]Simulated period and step length.
- startFirst day of the first simulated month, as a date or "YYYY-MM-DD".
- stepStep length
Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key time.end) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.time.end in schemas/messages/en.toml and open a pull request.