Skip to content

Instantly share code, notes, and snippets.

@slaskis
Forked from anonymous/gist:58717
Created February 5, 2009 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaskis/58718 to your computer and use it in GitHub Desktop.
Save slaskis/58718 to your computer and use it in GitHub Desktop.
def day_at_ted(local_datetime, local_offset)
pac_time = local_datetime - offset.hours - 8.hours
return pac_time.date
end
def search
search_since = day_at_ted(local_datetime, local_offset) + " 08:00:00"
search_before = day_at_ted(local_datetime, local_offset) + 1.day + " 07:59:00"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment