CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-cronstrue

tessl install tessl/npm-cronstrue@3.2.0

Convert cron expressions into human readable descriptions

Agent Success

Agent success rate when using this tile

100%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.12x

Baseline

Agent success rate without this tile

89%

task.mdevals/scenario-6/

Cron Schedule Formatter

A utility library that converts cron expressions into human-readable schedule descriptions with configurable time format support.

Capabilities

Time Format Configuration

  • Given a cron expression "30 14 * * *" with 24-hour format enabled, it returns "At 14:30" @test
  • Given a cron expression "30 14 * * *" with 12-hour format (24-hour disabled), it returns "At 02:30 PM" @test
  • Given a cron expression "0 0 * * *" with 24-hour format enabled, it returns "At 00:00" @test
  • Given a cron expression "0 0 * * *" with 12-hour format (24-hour disabled), it returns "At 12:00 AM" @test

Implementation

@generates

API

/**
 * Converts a cron expression into a human-readable schedule description.
 *
 * @param {string} expression - The cron expression to convert.
 * @param {Object} options - Configuration options.
 * @param {boolean} options.use24HourTimeFormat - If true, uses 24-hour time format; if false, uses 12-hour format with AM/PM.
 * @returns {string} A human-readable description of the schedule.
 */
function formatSchedule(expression, options) {
  // IMPLEMENTATION HERE
}

module.exports = {
  formatSchedule
};

Dependencies { .dependencies }

cronstrue { .dependency }

Provides cron expression to human-readable text conversion.

@satisfied-by

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/cronstrue@3.2.x
tile.json