[#BloombergLP-bdlt-FuzzUtil-consumeDatetimeTzInRange]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/FuzzUtil.adoc[FuzzUtil]::consumeDatetimeTzInRange
:relfileprefix: ../../../
:mrdocs:

Return a `DatetimeTz` whose local date is between `begin` and `end`&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;fuzzutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlt/DatetimeTz.adoc[DatetimeTz]
consumeDatetimeTzInRange(
    xref:BloombergLP/bslim/FuzzDataView.adoc[bslim::FuzzDataView]* fuzzDataView,
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& begin,
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date] const& end);
----

== Description

Return a `DatetimeTz` whose `dateTz()&period;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&period; The behavior is undefined unless `begin &lt;&equals; end`&period;

== Return Value

a `DatetimeTz` whose local date is between `begin` and `end`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fuzzDataView*
| view providing fuzz input bytes
| *begin*
| inclusive lower bound date
| *end*
| inclusive upper bound date
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
