CSPspEmu.Hle.Vfs.ScePspDateTime.ToDateTime C# (CSharp) Method

ToDateTime() public method

public ToDateTime ( ) : System.DateTime
return System.DateTime
        public DateTime ToDateTime()
        {
            return new DateTime((int)Year, (int)Month, (int)Day, (int)Hour, (int)Minute, (int)Second, (int)Microsecond / 1000, DateTimeKind.Utc);
        }

Usage Example

Exemplo n.º 1
0
 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));
     }
 }