Epoch

public struct Epoch: Fn

Epoch constructs a time special type relative to the epoch (1970-01-01T00:00:00Z). offset must be an integer type. unit may be a valid time unit.

Reference.

  • Declaration

    Swift

    public init(_ offset: Expr, _ unit: Expr)

    Parameters

    offset

    Number relative to the epoch.

    unit

    Offset unit.

  • Declaration

    Swift

    public init(_ offset: Expr, unit: TimeUnit)

    Parameters

    offset

    Number relative to the epoch.

    unit

    Offset unit.