Instance Propertypointfreeco.swift-dependencies 1.6.2Dependencies
now
The current date.
var now: Date { get set }
The current date.
var now: Date { get set }
import Dependencies
A dependency management library inspired by SwiftUI’s “environment.”
struct DateGenerator
A dependency that generates a date.
init(_ generate: @escaping () -> Date)
Initializes a date generator that generates a date from a closure.
static func constant(_ now: Date) -> DateGenerator
A generator that returns a constant date.
func callAsFunction() -> Date