If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Mysql BigInteger time question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-06, 07:24
pmusu pmusu is offline
Registered User
 
Join Date: Jan 2006
Posts: 2
Mysql BigInteger time question

Hi,

I got hold of a DB that i am using to practice webdevelopment using Java.
Now, the problem is that in a table, i have BigInteger that is used torepresent time.

Now, is it possible to represent data with BigInteger?

If i change datatype i will have to change some code. I was thinking of creating a method to convert the BigInteger to time in some way.

Example: if i use 2000 to represent 20:00, i can convert the BigInteger to string, and then modify the string to add the :

I would like to get some advice before proceeding.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 06-05-06, 22:46
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
Please post a date/time and the corresponding BIGINT value. The BIGINT values are often coded in peculiar ways (one common example is minutes past Jan 1, 1970), and without knowing how they are coded I'd be afraid to answer your question.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On