Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DateTimeZone zone = DateTimeZone.forID("Europe/Paris");
- ProphetChronology prophet = ProphetChronology.getInstance(zone);
- DateTime x = new DateTime(2020,5,1,16,0, prophet);
- DateTimeFormatter dtfOut = DateTimeFormat.forPattern("dd-MM-yyyy hh:mm:ss");
- System.out.println(dtfOut.print(x));
- DateTime y = x.withChronology(GregorianChronology.getInstance(zone));
- System.out.println(dtfOut.print(y));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement