Skip to content

Instantly share code, notes, and snippets.

@aragaer
Created November 28, 2011 18:01
Show Gist options
  • Select an option

  • Save aragaer/1401316 to your computer and use it in GitHub Desktop.

Select an option

Save aragaer/1401316 to your computer and use it in GitHub Desktop.
calc_jtt
def calc_jtt(start, end, now):
now = now.datetime()
end = end.datetime()
start = start.datetime()
hlen = (end - start).seconds/6.0
tnow = (now - start).seconds
return tnow/hlen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment