基于中科视拓的seetaface6封装的免费人脸识别项目后端接口
shentao
2025-09-22 aeb7a4313819c6406db74bb8d643aa8bc27b7b9d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.code2roc.fastface.util;
 
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
 
public class DateUtil {
    public static String getDateTagToDay() {
        DateFormat df = new SimpleDateFormat("yyyyMMdd");
        String tag = df.format(new Date());
        return tag;
    }
 
    public static String getDateTagToDay(Date date) {
        DateFormat df = new SimpleDateFormat("yyyyMMdd");
        String tag = df.format(date);
        return tag;
    }
 
    public static String getDateTagToSecond() {
        DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
        String tag = df.format(new Date());
        return tag;
    }
 
    public static String getDateTagToSecond(Date date) {
        DateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
        String tag = df.format(date);
        return tag;
    }
 
    public static String getDateFormatToSecond() {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String tag = df.format(new Date());
        return tag;
    }
 
    public static String getDateFormatToMillSecond() {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        String tag = df.format(new Date());
        return tag;
    }
 
    public static String getDateFormatToSecond(Date date) {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String tag = df.format(date);
        return tag;
    }
 
    public static String getDateFormatToMillSecond(Date date) {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        String tag = df.format(date);
        return tag;
    }
 
    public static long getTimePeroidSecond(Date startDate, Date endDate) {
        return (endDate.getTime() - (startDate.getTime())) / (1000);
    }
 
    public static long getTimePeroidToNowSecond(Date startDate) {
        return (new Date().getTime() - (startDate.getTime())) / (1000);
    }
 
    public static long getTimePeroidMillSecond(Date startDate, Date endDate) {
        return endDate.getTime() - startDate.getTime();
    }
 
    public static long getTimePeroidToNowMillSecond(Date startDate) {
        return new Date().getTime() - startDate.getTime();
    }
}