Skip to main content

The purpose of this plugin is to check if current time is in given time span.

Project description

Tracardi plugin

This code can be run within Tracardi workflow.

Is in time span action

The purpose of this plugin is to check if the local time is within defined time span.

This action minds the time zone to the event. Therefore, you must provide time zone. By default, time zone is included in browser event context.

Configuration

This node requires configuration. In order to read timezone you must define path to time zone. Use dot notation to do that.

Moreover, you need to set start and end of the time span. The time slots have no default values.

Example of the configuration:

{
  "timezone": "session@context.time.tz",
  "start": "12:00:00",
  "end": "14:00:00"
}

Input payload

This node does not process input payload.

Output

Return True or False. Return True if local time is in defined time span.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracardi-local-timespan-0.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

tracardi_local_timespan-0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page