Hegel 0.18.3
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::generators::temporal::DatetimesParams Struct Reference

Parameters for datetimes() generator. More...

#include <temporal.h>

Public Attributes

std::optional< DateTime > min_value
std::optional< DateTime > max_value
Precision precision = Precision::Nanoseconds

Detailed Description

Parameters for datetimes() generator.

Member Data Documentation

◆ max_value

std::optional<DateTime> hegel::generators::temporal::DatetimesParams::max_value

Maximum datetime (inclusive). Default: the last nanosecond of MAX_YEAR.

◆ min_value

std::optional<DateTime> hegel::generators::temporal::DatetimesParams::min_value

Minimum datetime (inclusive). Default: the first instant of MIN_YEAR.

◆ precision

Precision hegel::generators::temporal::DatetimesParams::precision = Precision::Nanoseconds

The drawn time of day is a whole number of these units since midnight.


The documentation for this struct was generated from the following file: