Get human-formatted date/time intervals with Alfred.
Screenshot using the dark variant of my custom theme.
Download the .alfredworkflow
file from the latest release and double-click to install.
Use this workflow to get the difference between two dates in Alfred. This relies exclusively on PHP’s DateInterval method, which is happy to accept a variety of inputs and works pretty well!
Examples:
datespan tomorrow
: countdown in hours and minutesdatespan 10/10/10
: difference in years, months, days, hours, and minutes—along with total business weeks, weeks, days, hours, and minutesdatespan 3/10 to 5/12
: all units above, but the span between zero-hour on each date
You can use any format that strtotime
can parse.