| Author |
how to use javax.time.TAIInstant package?
|
Henadeerage Henadeera
Greenhorn
Joined: Aug 13, 2011
Posts: 10
|
|
I have no idea ,
How to create TAIInstant type object in order to getTAISeconds()
I tried like this way.(necessary codes are given)
import javax.time.TAIInstant ;
TAIInstant taiinstant = new TAIInstant() ; // here it gives an error. it says it need parameters. When I check the API it has not given the constructor. netbean said it needs long and int //parameters. when I gives dummy val, it says TAIInstant(long,int) has private access in javax.time.TAIInstant
taiinstant.getTAISeconds() ;
below link is for download javax.time.TAIInstant package
http://sourceforge.net/apps/mediawiki/threeten/index.php?title=ThreeTen
please anybody help me, where I have done the mistake???
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
Well, the page you linked to does say this:
The ThreeTen project is still in Alpha so methods may appear and disappear at any point.
And it says it in boldface as well, meaning it's important. So to me it isn't surprising that you don't have good documentation yet and that things aren't what they seem. That's what "Alpha" means in software development. If you aren't prepared for this sort of thing then you really shouldn't be using the project.
|
 |
Henadeerage Henadeera
Greenhorn
Joined: Aug 13, 2011
Posts: 10
|
|
Paul Clapham wrote:Well, the page you linked to does say this:
The ThreeTen project is still in Alpha so methods may appear and disappear at any point.
And it says it in boldface as well, meaning it's important. So to me it isn't surprising that you don't have good documentation yet and that things aren't what they seem. That's what "Alpha" means in software development. If you aren't prepared for this sort of thing then you really shouldn't be using the project.
Oh!!! I didn't notice it...
because I found the API doc and it mentions clearly about the use of this class...
I think there may be an updated version of this package...
Anyway thanks for figuring the problem out .
|
 |
 |
|
|
subject: how to use javax.time.TAIInstant package?
|
|
|