473,387 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

milliseconds are not stored in the timestamp KInterbasDB + Firebird

I am trying to insert "timestamp" to the Firebird database using
standard library datetime module example given in the "KInterbasDB
Usage Guide" http://tinyurl.com/mplo4 , section "Example Programs
DATE/TIME/TIMESTAMP"

Even timestamp has the correct format before inserting to the database
(2006-26-2 17:25:34.940279 for example), milliseconds are not stored
and the database returns (2006,26,2,17,25,34). I have made some
Googling the whole afternoon to find if it is possible to configure
Firebird or KInterbasDB, but no success.

My environment: Fedora Core4, Firebird CS 1.5, Python 2.4.1,
KInterbasDB 3.2b1

Thanks for your advices.
Petr Jakes

May 2 '06 #1
1 2444
to provide feedback: David Rushby (the autor of the KInterbasDB) has
solved the problem applying such a future in the code. Thank you David.

snapshots:

http://kinterbasdb.sourceforge.net/s...503.src.tar.gz
http://kinterbasdb.sourceforge.net/s...-2.0-py2.4.exe

Petr Jakes

May 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: R Baumann | last post by:
I'm a newbie with Python, and trying to connect to the Interbase/Firebird 'EMPLOYEE.GDB' file to play with it. Can anyone help with this? I'm running Firebird 1.5rc4 Python 2.3.2 kinterbasdb...
2
by: fowlertrainer | last post by:
Hello ! I have a problem. I create my projects in Windows, and I write a database synchronizing utility for copy a gdb changes to another gdb. Some of these products is need to run in linux. ...
0
by: fowlertrainer | last post by:
Hello ! Very interesting thing: When I copy this script to another dir, it is working, but in this directory is not working. Only different is to this dir is used by an symlink. The python...
5
by: Maurice LING | last post by:
Hi, I've been using FB1.5 and access the database using Kinterbasdb + Python. My connection is established using kinterbasdb.connect() method and the parameters host, dns, database, user,...
10
by: yaron | last post by:
Hi, I do i get the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. like in java System.currentTimeMillis() ? Thanks.
1
by: Benny Schudel | last post by:
hello I've tried to convert some milliseconds to a time format. $ms = 100000 // 1min 40sec echo strftime('%H:%M:%S', $ms/1000); i expect the result is: "00:01:40" but the result ist:...
0
by: Almad | last post by:
Hi, I uploaded my application on our production server running FreeBSD and I found it crashing at startup. Problem is in connecting to my Firebird database: kinterbasdb.connect(with either...
0
by: DarkBlue | last post by:
Sorry to interrupt the regular programming here . As has been reported on some websites the maintainer of kinterbasdb David Rushby has died last month after a diving accident. Kinterbasdb is...
1
by: bobido | last post by:
Hi there, iam trying to use Firebird with this procedure: Parameters: NAAM VARCHAR(120) VWDID INTEGER QUOTE DECIMAL (9,3) QUOTEDATE TIMESTAMP QUOTETYPE VARCHAR(20)
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.