need to use a timetuple instead of a datetime object