class CronUtils {

    public static String getWeeklyCronExpression( int minutes, int hours, int dayOfWeek )
    {
        return getCronExpression(
            "0",
            String.valueOf( minutes ),
            String.valueOf( hours ),
            null,
            null,
            Weekday.values()[(dayOfWeek % 7)].name // both 0 and 7 are valid as Sunday in crontab patterns
        );
    }

}