Skip to content

Instantly share code, notes, and snippets.

@imeredith
Created October 30, 2012 21:39
Show Gist options
  • Select an option

  • Save imeredith/3983249 to your computer and use it in GitHub Desktop.

Select an option

Save imeredith/3983249 to your computer and use it in GitHub Desktop.
def forMonth(account: String, month: Timestamp) = {
val eom = add30Days(month)
for {
b <- Build if b.account === account && b.start_time > month && b.start_time < eom
} yield b
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment