/** * <summary> * Changes the number of seconds between current time and UTC time (time zone). * <para> * The timezone is automatically rounded to the nearest multiple of 15 minutes. * If current UTC time is known, the current time is automatically be updated according to the selected time zone. * Remember to call the <c>saveToFlash()</c> method of the module if the * modification must be kept. * </para> * <para> * </para> * </summary> * <param name="newval"> * an integer corresponding to the number of seconds between current time and UTC time (time zone) * </param> * <para> * </para> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public int set_utcOffset(int newval) { if (_func == null) { throw new YoctoApiProxyException("No Gps connected"); } if (newval == _UtcOffset_INVALID) { return(YAPI.SUCCESS); } return(_func.set_utcOffset(newval)); }