java.time was added to overcome the inconsistency of Calendar.
from java.time import ZoneId
from java.time.temporal import IsoFields
now = system.date.now()
date = now.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()
week = date.get(IsoFields.WEEK_OF_WEEK_BASED_YEAR)
print now
print date
print week