Skip to content

Instantly share code, notes, and snippets.

@tarchan
Last active August 29, 2015 13:58
Show Gist options
  • Save tarchan/10356161 to your computer and use it in GitHub Desktop.
Save tarchan/10356161 to your computer and use it in GitHub Desktop.
LocalTime a = LocalTime.parse("09:00");
LocalTime b = LocalTime.parse("17:00");
Duration c = Duration.between(LocalTime.MIN, LocalTime.parse("01:00"));
Duration d = Duration.between(a, b).minus(c);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment