sybase-ct and datetime results
| From: | Bj�rn Dolkemeier | Date: | Wed, 25 Apr 2001 20:59:15 +0000 |
| Subject: | sybase-ct and datetime results | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52427@lists.php.net to get a copy of this message | ||
(I posted this also to php.db, but the more I think php.dev would be a
better place)
Hello,
If I do a sybase_query("select getdate()",$Conn) this will return the
current date in the format "Nov 3 1998 8:06PM" (so I don't have seconds).
I think this leads to the usage of CS_SHORT_DATE in
ext/sybase_ct/php_sybase_ct.c (Line 275).
Does somebody know, if there is a solution for getting another
datetime-format beyond doing something like sybase_query("select
convert(varchar,getdate(),108)".
Wouldn't it be better to return the "datetime-results" of queries as a
timestamp? Or have a php.ini-setting / global parameter how to return
"datetime-results"?
Thanks for anwers, Bjoern