## Coverage Report

#### Created: 2023-09-09 18:04

    .../cutbox_command/Sources/CutBoxCLICore/HistoryEntry.swift

    Line

    Count

    Source

    1

    import Foundation

    2

    3

    struct HistoryEntry: Equatable {

    4

        let string: String

    5

        let timestamp: String?

    6

        let favorite: String?

    7

    8

    16

        var timeIntervalSince1970: Double? {

    9

    16

            guard let isotime = timestamp else {

    10

    1

                return nil

    11

    15

            }

    12

    15

    13

    15

            let dateFormatter: DateFormatter = iso8601()

    14

    15

    15

    15

            return dateFormatter

    16

    15

                .date(from: isotime)?.timeIntervalSince1970

    17

    16

        }

    18

    }