I have some calculations being done based on the current week of the year. On this current date (4/26/2016), both Python and PHP return the current week as being the 17th week in the year. Java, however, returns 18. How do I ensure that Java returns the same as Python and php?
// Java
Calendar now = Calendar.getInstance();
now.get(Calendar.WEEK_OF_YEAR); // Returns 18
// Python
datetime.datetime.now().isocalendar()[1] // Returns 17
// php
$current_date = new DateTime('now');
$current_date->format("W") // Returns 17