[#BloombergLP-bdlt-FuzzUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::FuzzUtil :relfileprefix: ../../ :mrdocs: This utility `struct` provides a namespace for a suite of functions that produce objects of date and time values from fuzz data. == Synopsis Declared in `<bdlt_fuzzutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct FuzzUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlt/FuzzUtil/consumeDate.adoc[`consumeDate`] | Return a `Date` based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. | xref:BloombergLP/bdlt/FuzzUtil/consumeDateInRange.adoc[`consumeDateInRange`] | Return a `Date` between the specified `begin` and `end` dates based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. The behavior is undefined unless `begin <= end`. | xref:BloombergLP/bdlt/FuzzUtil/consumeDateTz.adoc[`consumeDateTz`] | Return a `DateTz` based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. | xref:BloombergLP/bdlt/FuzzUtil/consumeDateTzInRange.adoc[`consumeDateTzInRange`] | Return a `DateTz` whose `localDate()` is between the specified `begin` and `end` dates based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. The behavior is undefined unless `begin <= end`. | xref:BloombergLP/bdlt/FuzzUtil/consumeDatetime.adoc[`consumeDatetime`] | Return a `Datetime` based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. | xref:BloombergLP/bdlt/FuzzUtil/consumeDatetimeInRange.adoc[`consumeDatetimeInRange`] | Return a `Datetime` whose `date()` is between the specified `begin` and `end` dates based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. The behavior is undefined unless `begin <= end`. | xref:BloombergLP/bdlt/FuzzUtil/consumeDatetimeTz.adoc[`consumeDatetimeTz`] | Return a `DatetimeTz` based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. | xref:BloombergLP/bdlt/FuzzUtil/consumeDatetimeTzInRange.adoc[`consumeDatetimeTzInRange`] | Return a `DatetimeTz` whose `dateTz().localDate()` is between the specified `begin` and `end` dates based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. The behavior is undefined unless `begin <= end`. | xref:BloombergLP/bdlt/FuzzUtil/consumeTime.adoc[`consumeTime`] | Return a `Time` based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. | xref:BloombergLP/bdlt/FuzzUtil/consumeTimeTz.adoc[`consumeTimeTz`] | Return a `TimeTz` based on the next bytes from the specified `fuzzDataView`, and update `fuzzDataView` to reflect the bytes consumed. | xref:BloombergLP/bdlt/FuzzUtil/consumeTz.adoc[`consumeTz`] | Return a timezone offset in minutes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#