Solved

What is time_offset in MSSQL?

Posted on 2010-11-22
3
380 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
  • 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now