Re: [threeten-develop] Clock and TimeSource
Status: Alpha
Brought to you by:
scolebourne
From: Peakall,Dale <Dal...@oc...> - 2012-02-04 22:16:42
|
Would the new Clock still be relative to a TimeZone? I assume if all it is doing is providing an Instant - not, but I want to be sure. -----Original Message----- From: Richard Warburton [mailto:ric...@gm...] Sent: 02 February 2012 01:32 To: thr...@li... Subject: Re: [threeten-develop] Clock and TimeSource > At the JSR-310 meeting with Oracle, one topic discussed was Clock and > TimeSource. > > The thinking is to separate these as follows: > > Clock would include the functionality of providing the underlying > Instant, currently achieved by TimeSource. > > Clock would lose most of its methods, as the now() methods on the main > set of classes perform the same role. This does make sense. I assume you're referring to factory methods for other types, such as 'yearMonth()' on Clock - I don't really see what value they add. Would this change involve removing the notion of what the current API terms an 'OffsetSystemTimeSource' or is that being kept as a subclass of the new Clock? > TimeSource (possibly renamed) would be a provider of a "possibly more > accurate" clock, providing TAI or UTC if available from the underlying > operating system. > > TAIInstant, UTCInstant and TimeSource would be placed into a secondary > module, rather than the very core module of the JDK. I think having them in a secondary module makes sense. On a related note, is there any possibility of having a Time Stamp Counter based TimeSource in the secondary module? I can certainly see its usefulness in certain situations, although its by no means enough to warrant inclusion into the core API. regards, Richard ------------------------------------------------------------------------ ------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ threeten-develop mailing list thr...@li... https://lists.sourceforge.net/lists/listinfo/threeten-develop |