CSPspEmu.Hle.Modules.rtc.sceRtc.sceRtcGetCurrentClockLocalTime C# (CSharp) Метод

sceRtcGetCurrentClockLocalTime() приватный Метод

private sceRtcGetCurrentClockLocalTime ( ScePspDateTime &Time ) : int
Time CSPspEmu.Hle.Vfs.ScePspDateTime
Результат int
        public int sceRtcGetCurrentClockLocalTime(out ScePspDateTime Time)
        {
            PspRtc.Update();
            var CurrentDateTime = PspRtc.CurrentDateTime;

            Time = new ScePspDateTime()
            {
                Year = (ushort)CurrentDateTime.Year,
                Month = (ushort)CurrentDateTime.Month,
                Day = (ushort)CurrentDateTime.Day,
                Hour = (ushort)CurrentDateTime.Hour,
                Minute = (ushort)CurrentDateTime.Minute,
                Second = (ushort)CurrentDateTime.Second,
                Microsecond = (uint)(CurrentDateTime.Millisecond * 1000),
            };

            return 0;
        }