Skip to content

Commit fde247a

Browse files
authored
Extend datetime requirements. (#76)
* Extend datetime requirements. * Improve clarity. * Fix time format. * Fix typo.
1 parent e814905 commit fde247a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/source/specification.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ Below we describe each level of the `rawdata` folder hierarchy in more detail. T
5757
* Session-level folders *must* be prefixed with a key-value pair that is unique for each session. The key *must* be `ses` and the value *must* be numerical, e.g. `ses-01`.
5858
* Sessions *should* be assigned ascending numerical labels as they are added to the project. The labels *should* be prefixed with an arbitrary number of 0s for consistent indentation and sorting, e.g. `ses-01`, `ses-02`, `ses-03`.
5959
* Additional key-value pairs with alphanumerical labels *may* be appended after the `ses` key-value pair. For example, dates can be added as follows: `ses-001_date-20230310`. The keys *should* be consistent across subjects.
60-
* If a `date` field is added, it *should* be in the format `YYYYMMDD`.
61-
* If a `time` field is added, it *should* be in the format `HHMMSS`
62-
* If a `datetime` field is added, it *should* be in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format `YYYYMMDDTHHMMSS` e.g. `20231225T133015`.
60+
* If a date, time or datetime is added, it *must* be in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and *should* be paired with a `date-`, `time-` or `datetime-` key, respectively. For example:
61+
- date: `ses-001_date-20250101` (date format YYYYMMDD)
62+
- time: `ses-001_time-140101` (time format HHMMSS)
63+
- datetime: `ses-001_datetime-20250101T140101` (datetime format YYYYMMDDTHHMMSS)
64+
6365
* Different sessions *may* contain different combinations of datatypes.
6466

6567
:::{hint}

0 commit comments

Comments
 (0)