dateutils

Tools to manipulate, parse, and calculate dates for financial data

brewmacoslinux
Try with needOr install directly
Source

About

Tools to manipulate dates with a focus on financial data

Commands

dateadddatediffdateseqdatesubdateconvstrptimestrftime

Examples

add days to a date$ dateadd 2024-01-15 10d
calculate days between two dates$ datediff 2024-01-15 2024-12-31
generate sequence of dates$ dateseq 2024-01-01 2024-01-10
convert date format from one style to another$ dateconv -f '%Y-%m-%d' -z 'America/New_York' 2024-01-15
subtract months from a date$ datesub 2024-12-31 6m