Skip to content

Addition of DATE_SQL and DATE_SQLTIMESTAMP constants - #432

Closed
navarr wants to merge 10 commits into
php:masterfrom
navarr:rfc-sqldate
Closed

navarr wants to merge 10 commits into
php:masterfrom
navarr:rfc-sqldate

Conversation

@navarr

@navarr navarr commented Sep 5, 2013

Copy link
Copy Markdown

This is a proposed pull request to add DATE_SQL and DATE_SQLTIMESTAMP constants to PHP.

Are these useful? Maybe. Are they necessary? No. Is it too much bloat? No idea.

This seems to be the normal format for MySQL, PostgreSQL, and MSSQL. The reason this branch exists is because a coworker thought it odd how heavily intertwined PHP and SQL are, and yet whenever you want to format a date or timestamp for SQL you have to type out the format yourself.

And so this was born.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant