def set_system_date_time(years=None, months=None, days=None, hours=None, minutes=None, seconds=None, utc_offset=None):
 date_time = _get_offset_time(utc_offset)
 if (years is None):
  years = date_time.year
 if (months is None):
  months = date_time.month
 if (days is None):
  days = date_time.day
 if (hours is None):
  hours = date_time.hour
 if (minutes is None):
  minutes = date_time.minute
 if (seconds is None):
  seconds = date_time.second
 try:
  new_datetime = datetime(years, months, days, hours, minutes, seconds, 0, date_time.tzinfo)
 except ValueError as err:
  raise SaltInvocationError(err.message)
 return _date_bin_set_datetime(new_datetime)

def set_system_date_time ( years = None , months = None , days = None , hours = None , minutes = None , seconds = None , utc_offset = None ) : date_time = _get_offset_time ( utc_offset ) if ( years is None ) : years = date_time . year if ( months is None ) : months = date_time . month if ( days is None ) : days = date_time . day if ( hours is None ) : hours = date_time . hour if ( minutes is None ) : minutes = date_time . minute if ( seconds is None ) : seconds = date_time . second try : new_datetime = datetime ( years , months , days , hours , minutes , seconds , 0 , date_time . tzinfo ) except ValueError as err : raise SaltInvocationError ( err . message ) return _date_bin_set_datetime ( new_datetime )
set the system date and time .