Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of DATE_SQL and DATE_SQLTIMESTAMP constants #432

Closed
wants to merge 10 commits into from
Closed

Addition of DATE_SQL and DATE_SQLTIMESTAMP constants #432

wants to merge 10 commits into from

Conversation

navarr
Copy link

@navarr navarr commented Sep 5, 2013

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