start
Key of the [time] table. Qualified name: time.start
First day of the first simulated month, as a date or "YYYY-MM-DD".
- Type
- datea TOML date or "YYYY-MM-DD"
- Unit
- none
- Default
- requiredexample: 2018-01-01
- Valid range
- first day of a monthyears 1900 to 9999
- Set in
- [time]required table
- Since
- 0.1engine 0.1.0
Description
start 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 # this page
end = 2019-01-01
[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 satrt, the key is refused before anything runs, as missing and as unknown, with the nearest accepted name:
error[E1006]: [time] has no `start`, which is required and must be a date YYYY-MM-DD.
--> scenario.toml:7:2
= fix: Add `start` under [time], as a date YYYY-MM-DD, for example `start = 2018-01-01`.
error[E1022]: Unknown key `satrt` in [time]; did you mean `start`?
--> scenario.toml:8:1
= fix: Rename `satrt` to `start`, or remove it; the accepted keys of [time] are "start", "end", "step".
Errors that name this key
E1006: [time] has nostart, which is required and must be ….E1008:startmust be …, but it is ….E1010:startis …, which is not a calendar date.E1011:startis …, 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.
- endFirst day after the run, after start by a whole number of steps.
- stepStep length
Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key time.start) 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.start in schemas/messages/en.toml and open a pull request.