AWS Cron Parser
This utility was built to process AWS Cron Expressions used by Amazon CloudWatch. It can support all the specs listed in the link below, including the special wildcards L W and #.
There are only 3 methods:
;// first we need to parse the cron expressionconst cron = awsCronParser;// to get the first occurrence from nowlet occurrence = awsCronParsernextcron ;// to get the next occurrence following the previous oneoccurrence = awsCronParsernextcron occurrence;// and use prev to get the previous occurrenceoccurrence = awsCronParser;