Skip to content

Instantly share code, notes, and snippets.

@yenerm
Created June 16, 2020 18:53
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 yenerm/655ba10042b6809642ccf91fd6f9f06b to your computer and use it in GitHub Desktop.
Save yenerm/655ba10042b6809642ccf91fd6f9f06b to your computer and use it in GitHub Desktop.
Period Sample
<!-- Copyright 2019 Google LLC.
SPDX-License-Identifier: Apache-2.0 →
LocalDate now = LocalDate.now();
LocalDate androidBeta = LocalDate.of(2020, 6, 10);
Period period = Period.between(androidBeta, now);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment