nano_year function

Get a component of a date time