php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75324 No provision for milliseconds in timestamps
Submitted: 2017-10-06 01:39 UTC Modified: -
From: dmiller at amfes dot com Assigned:
Status: Open Package: InterBase related
PHP Version: 7.0.24 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
27 - 11 = ?
Subscribe to this entry?

 
 [2017-10-06 01:39 UTC] dmiller at amfes dot com
Description:
------------
If a timestamp field is filled with the value of current_timestamp from a stored procedure or trigger, then the timestamp field will include millisecond information. "Pure" Firebird queries, such as from Flamerobin, will show the milliseconds. However, queries using the ibase_ functions return using the ibase.timestampformat per the documentation, which uses the strftime function - which has no provision for milliseconds.

A workaround for the strftime limitation was given in http://php.net/manual/en/function.strftime.php#114532


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-03 00:32 UTC] keymaker dot 7 at gmail dot com
Tambien se puede cambiar a varchar para obtener la fecha completa:
LEFT(CAST(SERVERTIME AS VARCHAR(24)),23)
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Oct 19 19:01:27 2019 UTC