Is there something analogous to python's `isoweek.Week` in Java or Android? -
isoweek.week
in python provides week object allows simple operations such as
w = week(2014,2) print w+200 isoweek.week(2017, 45)
as comparison operations. there in java or android same?
you can add weeks calendar.
public static void main(string[] args){ calendar cal = calendar.getinstance(); cal.set(calendar.year, 2014); cal.set(calendar.week_of_year,2); system.out.println(cal.get(calendar.year) + " "+ cal.get(calendar.week_of_year)); cal.add(calendar.week_of_year, 200); system.out.println(cal.get(calendar.year) + " "+ cal.get(calendar.week_of_year)); }
Comments
Post a Comment