Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dealing with Time Differences?

Status
Not open for further replies.

xtendscott

Programmer
Joined
Apr 21, 2003
Messages
276
Location
US
I have a site that displays an RSS feed(parsed through CF) I am going to stor it in the database then check say every hour to grab the feed again, rather than get it every page view.

What is good way to deal with Time differences?

Hour() or minute()? DateDiff("H",origTime, #now()#).

Would <cfif DateDiff("h", origTime, #now()#) GT 1> work? I have seen some questions of DateDiff's reliability for "d" specifically, just looking for suggestions.

xtendscott
Web Site Design and CF Programming
 
i use datediff in a fairly heavy traffic app and never had a problem with it.

If you don't ask the right questions, you don't get the right answers. A question asked in the right way often points to its own answer. Asking questions is the ABC of diagnosis. Only the inquiring mind solves problems.

-Quote by Edward Hodnett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top