Go to the source code of this file.
Macros | |
| #define | present_delta(value, unit) present_delta_constructor_unit_ ## unit (value) |
| Shortcut macro to create an instance of a Present delta type, based on a numeric value and a unit. More... | |
| #define present_delta | ( | value, | |
| unit | |||
| ) | present_delta_constructor_unit_ ## unit (value) |
Shortcut macro to create an instance of a Present delta type, based on a numeric value and a unit.
Possible units and their returned types:
Note that day and week return a DayDelta, not a TimeDelta. If you need a TimeDelta instead in one of these situations, you need to use day_time and week_time.
Examples: