Skip to content

Instantly share code, notes, and snippets.

@victorbrndls
Created May 13, 2021 11:25
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 victorbrndls/49a0b0830aa821d7cd5efe81370c716f to your computer and use it in GitHub Desktop.
Save victorbrndls/49a0b0830aa821d7cd5efe81370c716f to your computer and use it in GitHub Desktop.
fun Date.plusDays(days: Int): Date {
return Date(this.time + (days * ONE_DAY_MS))
}
fun Date.plusMillis(millis: Long): Date {
return Date(this.time + millis)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment