mausch / QuartzNetWebConsole

Embeddable Quartz.Net web console
Other
159 stars 62 forks source link

Human-readable cron expressions #15

Open mausch opened 12 years ago

mausch commented 12 years ago

Show a human-readable rendering of cron expressions.

See Quartz.CronExpression

dsoltesz commented 11 years ago

project out there that does this already that you might be able to leverage

http://www.geekytidbits.com/cron-expression-descriptor-demo/

mausch commented 11 years ago

Looks good! IIRC there's something like this already embedded in Quartz in the CronExpression class. If you're interested, would you take a look? Cheers

dsoltesz commented 11 years ago

In Quartz there is a way that helps you get the actual Cron Expression string but not into human readable text that I'm aware of.

CronScheduleBuilder csb = CronScheduleBuilder .WeeklyOnDayAndHourAndMinute(DayOfWeek.Monday, 12, 0);

ICronTrigger trigger = (ICronTrigger)TriggerBuilder .Create() .WithSchedule(csb) .Build();

string cronExpression = trigger.CronExpressionString;

mausch commented 11 years ago

CronExpression.GetExpressionSummary() does this, but it's nowhere near as pretty as the library you mention. We should merge that library, including of course its license text and a link to its home page.

dsoltesz commented 11 years ago

Yeah, would make this tool a lot more powerful

mausch commented 11 years ago

Looking forward to your pull request ;-)

mausch commented 2 years ago

https://www.nuget.org/packages/CronExpressionDescriptor/