--- title: "schedule()" slug: "system-schedule" updated: 2026-08-17T12:07:36Z published: 2026-08-17T12:07:36Z canonical: "docs.lobstersoftware.com/system-schedule" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # schedule() This function allows you to define a crontab entry in parameter **a**-**f**. In parameter **g**, you can define a starting time. Starting from the starting time, it is then calculated when the next start would be triggered by the crontab entry. The return value of the function is a timestamp. **NOTE:** The crontab entry here is only used within the function and is only used for the calculation. It does not trigger any event. The timestamp return value, however, allows you to implement your own timed events in the Mapping. ## Parameters | Parameter | Description | | --- | --- | | a | Second. See [Crontab syntax](/v1/docs/en/profiles-tab-2-times-crontab). | | b | Minute. | | c | Hour. | | d | Day month. | | e | Month. | | f | Weekday. | | g | Starting time in milliseconds. See also the function [milliseconds()](/v1/docs/en/date-milli-seconds). | ## Example Let's start with the following Function chain. | milliseconds(a) a Value: 2019-01-11 03:03:00 schedule(a,b,c,d,e,f,g) a Value: 0 b Value: */15 c Value: * d Value: * e Value: * f Value: * g Result: 1 | | --- | First we generate the millisecond value of a timestamp (the last start time). In the second function we define a crontab entry in parameters **a**-**f** that would start every 15 minutes. In parameter **g** we then use the calculated millisecond value. As result we get "2019-03-11 03:15:00.0". You can now use this value relative to the current time to determine if you want to trigger an (arbitrary) event. So if the returned timestamp is in the past, you trigger your event. | milliseconds(a) a Value: 2019-01-11 03:03:00 schedule(a,b,c,d,e,f,g) a Value: 0 b Value: */15 c Value: * d Value: * e Value: * f Value: * g Result: 1 now() a < b a Result: 2 b Result: 3 | | --- | The result is "true". > [!NOTE] > **NOTE:** > > An implicit type conversion into millisecond values takes place in the time comparison, which makes it possible to numerically compare the two times. See [Data types](/v1/docs/en/intro-concepts-data-types). The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated. Function chains in Lobster consist of sequences of functions that are used to define conditions or to process data. The possibility of encapsulating them in macros and reusing them allows for central maintenance and compact use. Changes to a macro affect all profiles with that macro. Function chains can be determined both system-wide and client-specific.