public DateTime ToDateTime() { return new DateTime((int)Year, (int)Month, (int)Day, (int)Hour, (int)Minute, (int)Second, (int)Microsecond / 1000, DateTimeKind.Utc); }
public int sceRtcGetTick(ref ScePspDateTime Date, out ulong Tick) { try { Tick = (ulong)Date.ToDateTime().GetTotalMicroseconds(); return 0; } catch (Exception) { //Console.Error.WriteLine("sceRtcGetTick.Date: " + *Date); //Console.Error.WriteLine(Exception); throw (new SceKernelException(SceKernelErrors.ERROR_INVALID_VALUE)); } }