(零):要探索JDK的核心底层源码,那必须掌握native用法(二)
了解不同系统下findJavaTZmd方法执行windows系统DetectstheplatformtimezonewhichmapstoaJavatimezoneID.charfindJavaTZmd(constcharjavahomedir,constcharcountry){charwinZoneName[MAXZONECHAR];charwinMapID[MAXMAPIDLENGTH];charstdtimezoneNULL;intresult;winMapID[0]0;resultgetWinTimeZone(winZoneName,winMapID);if(result!VALUEUNKNOWN){if(resultVALUEGMTOFFSET){stdtimezonestrdup(winZoneName);}else{stdtimezonema...