.. Copyright (c) 2024-2025 Tobias Erbsland - Erbsland DEV. https://erbsland.dev SPDX-License-Identifier: Apache-2.0 .. _ref-time-delta-value: .. index:: single: Time-Delta single: Time-Delta Value Time-Delta Values ================= Time delta values represent a duration or difference in time and are considered an advanced feature in :term:`ELCL`. A time delta consists of a positive or negative decimal integer followed by a time unit. This feature is classified as advanced because it adds complexity to the parser, and time delta handling may vary between different programming languages. .. code-block:: bnf time_delta ::= integer_dec space? time_delta_suffix time_delta_suffix ::= nanoseconds? | ns | microseconds? | us | µs | milliseconds? | ms | seconds? | s | minutes? | m | hours? | h | days? | d | weeks? | w | months? | years? The following examples demonstrate a few time-delta values in use: .. code-block:: erbsland-conf :class: good-example [Time Deltas] Value A: +17 days Value B: 100ms, 7s, -2m, +4h Value C: -1 year Value D: 5µs .. index:: pair: Rules; Time-Delta Rules for Time-Delta Values --------------------------- #. **Format:** A time delta value consists of a decimal integer (following all the rules for decimal integers), followed by an optional space, and then a time unit. .. code-block:: text