Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

TIMENOW() subtraction

Asked by Ben Phillips Jul 21, 2021 1.3K views 4 answers
Share

About this question

I am trying to find out the difference between the current time and 5PM. I tried numerous variations and I just can't make sense of the results I am getting.  Lets say current time is 15:36 (3:34 PM) When I run this formula

(TIMENOW() - TIMEVALUE("00:17:00.000"))
I get the following:
83949787
Given the fact that time time is 15:36 and I want to discover how long till 17:00 (5PM) I would expect one of these:
1h 24m
or
104 (minutes)
or
6,240 (seconds)
or
6,240,000 (milliseconds)

I can't make sense of this. Is this a fraction of a day, milliseconds....a decimal value?

Your answer

4 Answers

Nettie Latest answer

Answered on Sep 17, 2026

thank
Was this helpful?

Mancy Henry

Answered on Aug 14, 2026

Why is it that when using the TIMENOW() and TIMEVALUE(escape road) functions in different contexts, the results can be unexpected, and how can we ensure that time calculations are always accurate when dealing with different time zones?

Was this helpful?

Felix Andrea

Answered on Jun 16, 2026

One thing to keep in mind is that TIMENOW() returns a time value in milliseconds since midnight GMT, not a formatted time string. That's why you're seeing a large number instead of hours or minutes.

If your goal is to find the time remaining until 5 PM, you need to subtract the current time from the target time, not the other way around. Also make sure you're accounting for your timezone since TIMENOW() uses GMT. Once you have the difference in milliseconds, you can convert it to minutes or hours by dividing by 60,000 or 3,600,000 respectively.

The timezone adjustment mentioned in the accepted heardle online answer is probably the key reason your results don't match what you expect.

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.