On 15 May 2012 23:59, Mike Craig <mks...@gmail.com> wrote: > I need a ReadablePartial class that holds the fields dayOfWeek, hourOfDay, > minuteOfHour, secondOfMinute, millisOfSecond. Additionally, it needs to know > about TZ. I can't find such a thing in joda-time, so I'm implementing my > own. It looks like BasePartial is wrong because it throws out the TZ data. > Any suggestions?
BasePartial is intended for implementing "local" abstractions (just date and time fields without time-zones). Since you're writing your own class, you can store the time-zone yourself. Normally it is stored in a ZonedChronology. I would ask whether you have thought through your use case though. How can a set of fields that only specified day-of-week down be used to identify whether the date is in daylight savings or not? Stephen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest