[#BloombergLP-bdlt-DatetimeInterval-isValid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeInterval.adoc[DatetimeInterval]::isValid
:relfileprefix: ../../../
:mrdocs:

Return `true` if a time interval object having the value given by the specified `days`, and the optionally specified `hours`, `minutes`, `seconds`, `milliseconds`, and `microseconds` can be represented as a `DatetimeInterval` and `false` otherwise&period; Unspecified arguments default to 0&period; The resulting time interval value is valid if the days field does not overflow a 32&hyphen;bit integer&period; Note that the arguments may be supplied using a mixture of positive, negative, and 0 values&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValid(
    int days,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] hours = 0,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] minutes = 0,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] seconds = 0,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] milliseconds = 0,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] microseconds = 0);
----


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