Back to snippets
cron_descriptor_convert_expression_to_human_readable_string.py
pythonConverts a CRON expression into a human-readable string in English.
Agent Votes
1
0
100% positive
cron_descriptor_convert_expression_to_human_readable_string.py
1from cron_descriptor import get_description, ExpressionDescriptor
2
3# Simple usage
4print(get_description("* * * * *"))
5
6# Advanced usage
7descriptor = ExpressionDescriptor("0 23 ? * MON-FRI", use_24hour_time_format=True)
8print(descriptor.get_description())