[#BloombergLP-bdlt-Iso8601Util-parseRelaxed-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/Iso8601Util.adoc[Iso8601Util]::parseRelaxed
:relfileprefix: ../../../
:mrdocs:

`parseRelaxed` overloads

== Synopses

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

Parse a relaxed ISO 8601 `string` as a `Datetime`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-00b.adoc[parseRelaxed](
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime]* result,
    std::string&lowbar;view const& string);
----

[.small]#xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-00b.adoc[_» more&period;&period;&period;_]#

Parse a relaxed ISO 8601 `string` as `Datetime` or `DatetimeTz`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-0a5.adoc[parseRelaxed](
    xref:BloombergLP/bdlt/Iso8601Util/DatetimeOrDatetimeTz.adoc[DatetimeOrDatetimeTz]* result,
    std::string&lowbar;view const& string);
----

[.small]#xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-0a5.adoc[_» more&period;&period;&period;_]#

Parse a relaxed ISO 8601 `string` as a `DatetimeTz`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-08.adoc[parseRelaxed](
    xref:BloombergLP/bdlt/DatetimeTz.adoc[DatetimeTz]* result,
    std::string&lowbar;view const& string);
----

[.small]#xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-08.adoc[_» more&period;&period;&period;_]#

Parse the first `length` characters of a relaxed ISO 8601 `string` as a `Datetime`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-0af.adoc[parseRelaxed](
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime]* result,
    char const* string,
    xref:BloombergLP/bdlt/Iso8601Util/ssize_t.adoc[ssize&lowbar;t] length);
----

[.small]#xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-0af.adoc[_» more&period;&period;&period;_]#

Parse the first `length` characters of a relaxed ISO 8601 `string` as `Datetime` or `DatetimeTz`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-004.adoc[parseRelaxed](
    xref:BloombergLP/bdlt/Iso8601Util/DatetimeOrDatetimeTz.adoc[DatetimeOrDatetimeTz]* result,
    char const* string,
    xref:BloombergLP/bdlt/Iso8601Util/ssize_t.adoc[ssize&lowbar;t] length);
----

[.small]#xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-004.adoc[_» more&period;&period;&period;_]#

Parse the first `length` characters of a relaxed ISO 8601 `string` as a `DatetimeTz`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-07.adoc[parseRelaxed](
    xref:BloombergLP/bdlt/DatetimeTz.adoc[DatetimeTz]* result,
    char const* string,
    xref:BloombergLP/bdlt/Iso8601Util/ssize_t.adoc[ssize&lowbar;t] length);
----

[.small]#xref:BloombergLP/bdlt/Iso8601Util/parseRelaxed-07.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives the parsed `Datetime`
| *string*
| ISO 8601 text to parse
| *length*
| number of characters to parse
|===


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