Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

round date variables to 15 minutes

Krishna Devi VinayakaSep 8 2015 — edited Sep 8 2015

Hi,

I have a program to calculate attendance details of employees.

Here i compute unpaid minutes between each punches.

For eg. Suppose if an employee is absent from 09:00 am to 09:45 am, then the unpaid minutes would be 45.

But if f an employee is absent from 09:14 am to 09:31 am, then also unpaid minutes would be 45


Here the unpaid minutes calculation is as follows.

from time is always rounded backward to 15 minutes. totime is always rounded forward to 15 minutes, then

modified fromtime and to time would be 09:00 am and 9:45 am

How can i do that in oracle procedure where i have two date variables fromtime and totime.

I want to get modified fromtime and totime

Please help

I use oracle 10g

This post has been answered by chris227 on Sep 8 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2015
Added on Sep 8 2015
4 comments
1,289 views