@HLEFunction(nid=0x6FF40ACC,version=150) public int sceRtcGetTick(ScePspDateTime time,TPointer64 ticksAddr){
  Calendar cal=new GregorianCalendar(time.year,time.month - 1,time.day,time.hour,time.minute,time.second);
  cal.set(Calendar.MILLISECOND,time.microsecond / 1000);
  cal.setTimeZone(ScePspDateTime.GMT);
  long ticks=rtcMagicOffset + (cal.getTimeInMillis() * 1000L) + (time.microsecond % 1000);
  ticksAddr.setValue(ticks);
  if (log.isDebugEnabled()) {
    log.debug(String.format("sceRtcGetTick returning %d",ticks));
  }
  return 0;
}

@ HLEFunction ( nid = 0x6FF40ACC , version = 150 ) public int sceRtcGetTick ( ScePspDateTime time , TPointer64 ticksAddr ) { Calendar cal = new GregorianCalendar ( time . year , time . month - 1 , time . day , time . hour , time . minute , time . second ) ; cal . set ( Calendar . MILLISECOND , time . microsecond / 1000 ) ; cal . setTimeZone ( ScePspDateTime . GMT ) ; long ticks = rtcMagicOffset + ( cal . getTimeInMillis ( ) * 1000L ) + ( time . microsecond % 1000 ) ; ticksAddr . setValue ( ticks ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( String . format ( "sceRtcGetTick returning %d" , ticks ) ) ; } return 0 ; }
set ticks based on a psptime struct .
