public virtual void Set(mrs.Time time) { System.DateTime local_time = mrs.Time.UnixEpoch.AddSeconds(time.GetSec()).ToLocalTime(); m_Year = (UInt16)local_time.Year; m_Month = (byte)local_time.Month; m_Date = (byte)local_time.Day; m_Hour = (byte)local_time.Hour; m_Min = (byte)local_time.Minute; m_Sec = (byte)local_time.Second; m_Usec = (UInt32)time.GetUsec(); }
public virtual bool WriteTime(mrs.Time time) { return(WriteTime(time.GetSec(), time.GetUsec())); }