mirror of https://github.com/micromata/borgbackup-butler.git

...
Kai Reinhard
14.56.2018 19732b785f222871a76f931213587b2c04cc1e10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package de.micromata.borgbutler.utils;
 
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
 
public class DateUtils {
    /**
     * @param borgDateTime
     * @return
     */
    public static String get(String borgDateTime) {
        LocalDateTime dateTime = LocalDateTime.parse(borgDateTime);
        return dateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME);
    }
}