• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to use javax.time.TAIInstant package?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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???
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 .
 
Do not threaten THIS beaver! Not even with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic