Skip to content

Commit 608815b

Browse files
authored
Pdo: Document Pdo\Dblib::ATTR_DATETIME_CONVERT (#4658)
* Document Pdo\Dblib::ATTR_DATETIME_CONVERT
1 parent 75a76af commit 608815b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

reference/pdo_dblib/pdo-dblib.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@
142142
<term><constant>Pdo\Dblib::ATTR_DATETIME_CONVERT</constant></term>
143143
<listitem>
144144
<simpara>
145+
This connection attribute controls the format of strings for datetime
146+
types. When this is &false;, PDO_DBLIB will return a datetime type as a
147+
string in the format that SQL Server returns it in (i.e.
148+
<literal>"2017-10-27 10:22:44"</literal>). When &true;, PDO_DBLIB will
149+
convert the datetime type into a string using a user-defined or locale
150+
format, as specified in the FreeTDS <filename>locales.conf</filename>
151+
file. By default, this attribute is &false;.
145152
</simpara>
146153
</listitem>
147154
</varlistentry>

0 commit comments

Comments
 (0)