[#BloombergLP-ball-RecordStringFormatter-2constructor-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RecordStringFormatter.adoc[RecordStringFormatter]::RecordStringFormatter
:relfileprefix: ../../../
:mrdocs:

Create a record formatter with the specified `format` and `offset`&period;

== Synopsis

Declared in `&lt;ball&lowbar;recordstringformatter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
RecordStringFormatter(
    char const* format,
    xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] const& offset,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

== Description

Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period;

DEPRECATED&colon; Use a constructor taking `publishInLocalTime` instead&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *format*
| printf&hyphen;style format specification
| *offset*
| timestamp offset applied to formatted timestamps
| *allocator*
| allocator used to supply memory
|===


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