Solved

What is time_offset in MSSQL?

Posted on 2010-11-22
3
415 Views
Last Modified: 2012-06-27
Hi, I'm trying to decipher some code that selects tasks based on their time, or so it says... Here's the filter:

datepart(hh,@NOW)*60 + datepart(mi,@NOW) + time_offset*60 BETWEEN 480 and 1170)

A comment next to it says it will select tasks between 8:00 am and 7:30 pm. Is this correct? How does this work?
0
Comment
Question by:horalia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Expert Comment

by:cyberkiwi
ID: 34193279
[b]time_offset[/b] is a column in some table that is part of that select...

It is most likely an integer value (number) that represents how many minutes to shift the range 8:00 to 17:30 by.
0
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 500 total points
ID: 34193281
[b]time_offset[/b] is a column in some table that is part of that select...

It is the number of hours by which to shift the range 8:00 to [b]19[/b]:30 by. So if it is 1.5, the range becomes 9:30am - 9pm
0
 

Author Closing Comment

by:horalia
ID: 34193367
Don't even know the tables I'm working with... thought it was some type of function! Thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question