首页 > 代码库 > Selenium-java-获取当前时间

Selenium-java-获取当前时间

1 获取当前时间

        // 获取当前时分秒
        Calendar now = Calendar.getInstance();
        int is = now.get(Calendar.HOUR_OF_DAY);
        int isf = now.get(Calendar.MINUTE);
        int iss = now.get(Calendar.SECOND);

 

Selenium-java-获取当前时间