[PEP8]ify date.py, update from core

Change-Id: I0f6b66a44acba89182a2dbd8eae34fa32a6b71b2