Original Post
This question isn't really game related, but certainly Java related. I'm building a Java EE-based rostering system for work. I've sorted out the basic data design for employees, sites and shifts. Shifts have a start and end time, which are java.util.Date instances (how they're persisted I don't really know or care). What I want to also do is store some kind of ongoing weekly roster. This would require storing relative start and end times. The only problem is that the Java API doesn't seem to have a way to do this, as far as I can tell. What would be the best way to go about this? I was thinking just using an arbitrary absolute date (let's say Monday 2000-01-03). Or perhaps I could use millisecond offsets since the beginning of the week, but that wouldn't really seem like the 'correct' method to use. Any suggestions?