Skip to main content

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

Project description

Local 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 of 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 it. 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

This node does not process input payload.

Output

Return input payload on IN port or OUT port. Returns data on IN port 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.6.0.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

tracardi_local_timespan-0.6.0-py3-none-any.whl (5.6 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