Ypsilon.Emulation.Processor.YRTC.GetData C# (CSharp) Method

GetData() public method

public GetData ( ) : ushort[]
return ushort[]
        public ushort[] GetData()
        {
            ushort[] info = new ushort[0x04];
            DateTime now = DateTime.Now;
            byte year = (byte)(now.Year - 1900);
            byte month = (byte)now.Month;
            byte day = (byte)now.Day;
            byte hour = (byte)now.Hour;
            byte minute = (byte)now.Minute;
            byte second = (byte)now.Second;
            ushort tick = (ushort)now.Millisecond;
            info[0] = (ushort)((year << 8) + month);
            info[1] = (ushort)((day << 8) + hour);
            info[2] = (ushort)((minute << 8) + second);
            info[3] = tick;
            return info;
        }