// Path: IBServer/src/main/java/org/ironbrain/utils/DateUtils.java
// public class DateUtils{
// 
//     public static String getNiceDate(long ms){
//         Date date = new Date(ms);
//         return new SimpleDateFormat("dd.MM.yyyy HH:mm:ss").format(date);
//     }
// 
//     public static String getUniqueFileName(){
//         return new SimpleDateFormat("yyyy_MM_dd__HH_mm_ss_SSS").format(new Date(System.currentTimeMillis()));
//     }
// }


import org.ironbrain.utils.DateUtils;
import javax.persistence.*;
    public void setUser(Integer user) {
        this.user = user;
    }

    public Long getStartMs() {
        return startMs;
    }

    public void setStartMs(Long startMs) {
        this.startMs = startMs;
    }

    public Long getEndMs() {
        return endMs;
    }

    public void setEndMs(Long endMs) {
        this.endMs = endMs;
    }

    private Long endMs;

    @Transient
    public long getDurationMin() {

        return (endMs - startMs) / (1000 * 60);
    }

    @Transient
    public String getName() {
// Path: IBServer/src/main/java/org/ironbrain/utils/DateUtils.java
// public class DateUtils{
// 
//     public static String getNiceDate(long ms){
//         Date date = new Date(ms);
//         return new SimpleDateFormat("dd.MM.yyyy HH:mm:ss").format(date);
//     }
// 
//     public static String getUniqueFileName(){
//         return new SimpleDateFormat("yyyy_MM_dd__HH_mm_ss_SSS").format(new Date(System.currentTimeMillis()));
//     }
// }


// Path: IBServer/src/main/java/org/ironbrain/core/Exam.java
import org.ironbrain.utils.DateUtils;
import javax.persistence.*;

    public void setUser(Integer user) {
        this.user = user;
    }

    public Long getStartMs() {
        return startMs;
    }

    public void setStartMs(Long startMs) {
        this.startMs = startMs;
    }

    public Long getEndMs() {
        return endMs;
    }

    public void setEndMs(Long endMs) {
        this.endMs = endMs;
    }

    private Long endMs;

    @Transient
    public long getDurationMin() {

        return (endMs - startMs) / (1000 * 60);
    }

    @Transient
    public String getName() {
        return DateUtils.getNiceDate(startMs);