import java.util.*;import java.io.*;class SysProb { //返回当前系统变量的函数,结果放在一个Properties里边,这里只针对win2k以上的,其它系统可以自己改进 public Properties getEnv() throws Exception { Properties prop=new Properties();String OS = System.getProperty("os.name").toLowerCase(...
获得系统当前时间 NSDateFormatter*nsdformatter=[[[NSDateFormatteralloc]init]autorelease]; [nsdformattersetDateStyle:NSDateFormatterShortStyle]; [nsdformattersetDateFormat:@"YYYY-MM-dd HH:mm:ss"]; NSString*timer=[nsdformatterstringFromDate:[NSDatedate]]; NSLog(@"当前时间%@",timer);...