Getting the current date and time:
from datetime import datetime now=datetime.now() print now
This will print the current time for e.g.
For a different format: 46 more words
Yesterday I presented Java 8 Date Time new feature.
The presentation took place at the Israeli Java User Group meetup (ILJUG).
Here’s the presentation: