Hi,

I'm doing a small timesheet app with struts using PostgreSQL as backend and as I'm new to struts and also somewhat new to Java I'm trying to decide where I should put the logic.

Each row contains a day, start time, end time and break time. Now, I want the business layer to calculate the duration between start time, end time minus the break.

Should this be placed in the SQL-side using a special query, or should I do this in Java? If so, is it possible to calculate durations and intervals in Java without using third-party packages?

I know the question is pretty vague but I'm on thin ice at the moment and not really knowing what I'm doing :)


regards, Robin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to