Created
June 16, 2020 18:52
-
-
Save yenerm/1b7116be58a997da1565b4b586750f31 to your computer and use it in GitHub Desktop.
OffsetDateTime Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Copyright 2019 Google LLC. | |
SPDX-License-Identifier: Apache-2.0 --> | |
ZoneOffset zoneOffSet= ZoneOffset.of("+03:00"); | |
OffsetDateTime offsetDateTime = OffsetDateTime.now(zoneOffSet); | |
System.out.println(offsetDateTime); | |
//2020-06-08T23:50:17.315+03:00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment