#!/usr/bin/env python3

from datetime import datetime

dt = datetime(2012, 10, 31, 12, 30, 59, 300)

print("Year:", dt.year)
print("Month:", dt.month)
print("Day:", dt.day)
print("Hour:", dt.hour)
print("Minute:", dt.minute)
print("Second:", dt.second)
print("Microsecond:", dt.microsecond)
