MoEngageDateProvider
public protocol MoEngageDateProvider
Date provider abstraction for testability
Provides a consistent interface for obtaining the current date/time, allowing for deterministic time-based testing through mock implementations.
-
Returns the current date and time
Declaration
Swift
func now() -> Date